IAM py3 fix.

This commit is contained in:
Steve Pulec 2014-12-06 19:42:42 -05:00
parent d1ad6400af
commit 6331c2e1f1

View File

@ -222,7 +222,7 @@ class IAMBackend(BaseBackend):
def get_role_policy(self, role_name, policy_name):
role = self.get_role(role_name)
if role:
for p, d in role.policies.iteritems():
for p, d in role.policies.items():
if p == policy_name:
return p, d
else: