Support for python 2.7
This commit is contained in:
parent
f235fa145e
commit
42e459668c
1 changed files with 3 additions and 1 deletions
|
|
@ -735,7 +735,9 @@ class IAMBackend(BaseBackend):
|
||||||
)
|
)
|
||||||
if policy.arn in self.managed_policies:
|
if policy.arn in self.managed_policies:
|
||||||
raise EntityAlreadyExists(
|
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
|
self.managed_policies[policy.arn] = policy
|
||||||
return policy
|
return policy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue