Skip to content

Commit

Permalink
Skip validation is value is None
Browse files Browse the repository at this point in the history
Otherwise this breaks --generate-cli-skeleton.
  • Loading branch information
jamesls committed Apr 17, 2015
1 parent 5dbc95b commit 86795d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions awscli/customizations/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def _should_contain_zip_content(value):

class ZipFileArgument(CustomArgument):
def add_to_params(self, parameters, value):
if value is None:
return
_should_contain_zip_content(value)
zip_file_param = {'ZipFile': value}
parameters['Code'] = zip_file_param

0 comments on commit 86795d0

Please sign in to comment.