Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes #819.
  • Loading branch information
garnaat committed Jun 14, 2012
1 parent 155d5ee commit 4df51a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto/provider.py
Expand Up @@ -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:
Expand Down

0 comments on commit 4df51a7

Please sign in to comment.