Merge pull request #366 from spg/fix/iam_get_role
IAM: get_role should thrown when role is unexisting
This commit is contained in:
commit
185b49ad66
2 changed files with 8 additions and 0 deletions
|
|
@ -249,6 +249,7 @@ class IAMBackend(BaseBackend):
|
|||
for role in self.get_roles():
|
||||
if role.name == role_name:
|
||||
return role
|
||||
raise BotoServerError(404, 'Not Found')
|
||||
|
||||
def get_roles(self):
|
||||
return self.roles.values()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue