Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jan 26, 2022
1 parent 4fdfd51 commit b7ec03c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions scar/providers/aws/lambdafunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def get_access_key(self) -> str:
def create_function(self):
# Create tmp folders
zip_payload_path = None
supervisor_zip_path = None
if self.function.get('runtime') == "image":
# Create docker image in ECR
self.function['container']['image'] = ContainerImage.create_ecr_image(self.resources_info,
Expand Down
2 changes: 0 additions & 2 deletions test/unit/aws/test_lambdafunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ def test_create_function_image(self, from_env, unzip_folder, load_tmp_config_fil
'SecurityGroupIds': ['sg']},
'FileSystemConfigs': [{'Arn': 'efsaparn', '': '/mnt'}],
'Code': {'ImageUri': 'repouri:latest'}}
print(lam.client.client.create_function.call_args_list[0][1])
print(res)
self.assertEqual(lam.client.client.create_function.call_args_list[0][1], res)
self.assertEqual(docker.images.push.call_args_list[0][0][0], "repouri")
self.assertEqual(docker.images.build.call_args_list[0][1]['tag'], "repouri")
Expand Down

0 comments on commit b7ec03c

Please sign in to comment.