[lambda] Change string format to use {0} instead of {}

This commit is contained in:
Hugo Lopes Tavares 2016-02-16 16:44:44 -05:00
parent 482751f731
commit ac66a8eb87

View File

@ -54,7 +54,7 @@ class LambdaFunction(object):
else: else:
self.code_size = 123 self.code_size = 123
self.code_sha_256 = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' self.code_sha_256 = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
self.function_arn = 'arn:aws:lambda:123456789012:function:{}'.format(self.function_name) self.function_arn = 'arn:aws:lambda:123456789012:function:{0}'.format(self.function_name)
@property @property
def vpc_config(self): def vpc_config(self):
@ -86,7 +86,7 @@ class LambdaFunction(object):
def get_code(self): def get_code(self):
return { return {
"Code": { "Code": {
"Location": "s3://lambda-functions.aws.amazon.com/{}".format(self.code['S3Key']), "Location": "s3://lambda-functions.aws.amazon.com/{0}".format(self.code['S3Key']),
"RepositoryType": "S3" "RepositoryType": "S3"
}, },
"Configuration": self.get_configuration(), "Configuration": self.get_configuration(),