Skip to content

Commit

Permalink
fix: lambda tests and backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
linjmeyer authored and jvasallo committed Oct 24, 2021
1 parent bb4ab47 commit 4d4a49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/foremast/awslambda/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self, app, env, region, prop_path, artifact_path):
env (str): Environment/Account
region (str): AWS Region
prop_path (str): Path of environment property file
artifact_path (str): Path or URI for code artifact
"""
self.app_name = app
self.env = env
Expand All @@ -58,7 +59,7 @@ def __init__(self, app, env, region, prop_path, artifact_path):
self.description = self.pipeline['app_description']
self.handler = self.pipeline['handler']
self.vpc_enabled = self.pipeline['vpc_enabled']
self.package_type = self.pipeline["package_type"]
self.package_type = "zip" if 'package_type' not in self.pipeline else self.pipeline['package_type']

self.settings = get_properties(prop_path, env=self.env, region=self.region)
app = self.settings['app']
Expand Down
2 changes: 1 addition & 1 deletion tests/lambda/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'app_description': None,
'handler': None,
'runtime': None,
'vpc_enabled': None,
'vpc_enabled': None
},
},
'app': {
Expand Down

0 comments on commit 4d4a49e

Please sign in to comment.