Permalink
Browse files

Fixes #819.

  • Loading branch information...
1 parent 155d5ee commit 4df51a7e6996ecdf5a6b2d18146289e8f07139b6 @garnaat garnaat committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 boto/provider.py
View
@@ -210,7 +210,7 @@ def _populate_keys_from_metadata_server(self):
metadata = get_instance_metadata(timeout=timeout, num_retries=1)
# I'm assuming there's only one role on the instance profile.
if metadata and 'iam' in metadata:
- security = credentials['iam']['security-credentials'].values()[0]
+ security = metadata['iam']['security-credentials'].values()[0]
if self.access_key is None:
self.access_key = security['AccessKeyId']
if self.secret_key is None:

0 comments on commit 4df51a7

Please sign in to comment.