Closed martinb3 closed 8 years ago
Possible breadcrumb: https://github.com/rackerlabs/lambda-uploader/pull/74#discussion_r57307712
Discussing this offline. I feel like the lambda-uploader shouldn't behave like this. If someone is overriding the configuration file default "/path/of/function/lambda.json" then it should explicitly point to a configuration file. If a directory is passed then it is not a configuration file and an exception should be raised.
Right now, if the file doesn't exist (e.g. if it's a directory), we try the current directory and join lambda.json to it. Should we consider trying the supplied path given as an argument, and joining lambda.json to that first.