IAM: raise error if requiested instance profile does not exist (#802)
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
This commit is contained in:
parent
a292150087
commit
d42432bfef
2 changed files with 10 additions and 0 deletions
|
|
@ -501,6 +501,8 @@ class IAMBackend(BaseBackend):
|
|||
if profile.name == profile_name:
|
||||
return profile
|
||||
|
||||
raise IAMNotFoundException("Instance profile {0} not found".format(profile_name))
|
||||
|
||||
def get_instance_profiles(self):
|
||||
return self.instance_profiles.values()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue