fix list comprehension

This commit is contained in:
Michael Penkov 2020-04-29 13:03:03 +09:00
parent 179f5170d4
commit 45d99aef69

View File

@ -1370,7 +1370,7 @@ class S3Backend(BaseBackend):
raise MissingKey(key_name) raise MissingKey(key_name)
self.tagger.delete_all_tags_for_resource(key.arn) self.tagger.delete_all_tags_for_resource(key.arn)
self.tagger.tag_resource( self.tagger.tag_resource(
key.arn, [{"Key": key, "Value": value} for key, value in tags.items()], key.arn, [{"Key": k, "Value": v} for (k, v) in tags.items()],
) )
return key return key