Skip to content

Commit

Permalink
Don't ignore some settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu1 committed May 17, 2016
1 parent a301aa6 commit 552d76a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zappa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ def create_package(self):
self.zip_path = self.zappa.create_lambda_zip(
self.lambda_name,
handler_file=handler_file,
use_precompiled_packages=self.zappa_settings.get('use_precompiled_packages', True),
exclude=self.zappa_settings.get('exclude', [])
use_precompiled_packages=self.zappa_settings[self.api_stage].get('use_precompiled_packages', True),
exclude=self.zappa_settings[self.api_stage].get('exclude', [])
)

# Throw our setings into it
Expand Down Expand Up @@ -549,4 +549,4 @@ def handle(): # pragma: no cover
print(e)

if __name__ == '__main__': # pragma: no cover
handle()
handle()

0 comments on commit 552d76a

Please sign in to comment.