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): |     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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user