[boto] r1345 committed - Fixes issue 161.

2 views
Skip to first unread message

codesite...@google.com

unread,
Oct 26, 2009, 10:58:04 PM10/26/09
to boto-...@googlegroups.com
Revision: 1345
Author: Mitch.Garnaat
Date: Mon Oct 26 19:57:24 2009
Log: Fixes issue 161.
http://code.google.com/p/boto/source/detail?r=1345

Modified:
/trunk/boto/utils.py

=======================================
--- /trunk/boto/utils.py Mon Oct 26 18:11:53 2009
+++ /trunk/boto/utils.py Mon Oct 26 19:57:24 2009
@@ -166,12 +166,15 @@
else:
p = field.find('=')
if p > 0:
- field = field[0:p]
- val = retry_url(url + field)
+ key = field[p+1:]
+ resource = field[0:p] + '/openssh-key'
+ else:
+ key = resource = field
+ val = retry_url(url + resource)
p = val.find('\n')
if p > 0:
val = val.split('\n')
- d[field] = val
+ d[key] = val
return d

def get_instance_metadata(version='latest'):

Reply all
Reply to author
Forward
0 new messages