fix tests for python 3.x
This commit is contained in:
parent
2c8326e9b9
commit
101dfaa412
@ -111,7 +111,7 @@ class LambdaFunction(BaseModel):
|
||||
}
|
||||
|
||||
def get_code(self):
|
||||
if 'S3Key' in self.code:
|
||||
if isinstance(self.code, dict):
|
||||
return {
|
||||
"Code": {
|
||||
"Location": "s3://lambda-functions.aws.amazon.com/{0}".format(self.code['S3Key']),
|
||||
|
@ -624,4 +624,4 @@ def test_get_function_created_with_zipfile():
|
||||
"SubnetIds": [],
|
||||
}
|
||||
},
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user