Merge pull request #230 from joekiller/fix_unsupported_metadata
raise NotImplementedError on unknown metadata path
This commit is contained in:
commit
9559c6f746
2 changed files with 10 additions and 0 deletions
|
|
@ -158,4 +158,6 @@ def metadata_response(request, full_url, headers):
|
|||
result = 'default-role'
|
||||
elif path == 'iam/security-credentials/default-role':
|
||||
result = json.dumps(credentials)
|
||||
else:
|
||||
raise NotImplementedError("The {0} metadata path has not been implemented".format(path))
|
||||
return 200, headers, result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue