fix tests for python 3.x
This commit is contained in:
parent
2c8326e9b9
commit
101dfaa412
2 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ class LambdaFunction(BaseModel):
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_code(self):
|
def get_code(self):
|
||||||
if 'S3Key' in self.code:
|
if isinstance(self.code, dict):
|
||||||
return {
|
return {
|
||||||
"Code": {
|
"Code": {
|
||||||
"Location": "s3://lambda-functions.aws.amazon.com/{0}".format(self.code['S3Key']),
|
"Location": "s3://lambda-functions.aws.amazon.com/{0}".format(self.code['S3Key']),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue