Support for python 2.7

This commit is contained in:
Ian Yon 2019-11-05 19:29:28 -03:00
parent f235fa145e
commit 42e459668c

View File

@ -735,7 +735,9 @@ class IAMBackend(BaseBackend):
)
if policy.arn in self.managed_policies:
raise EntityAlreadyExists(
f"A policy called {policy_name} already exists. Duplicate names are not allowed."
"A policy called {} already exists. Duplicate names are not allowed.".format(
policy_name
)
)
self.managed_policies[policy.arn] = policy
return policy