git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e78ce4
)
fix bugs
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 16 Mar 2012 16:20:54 +0000
(12:20 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 16 Mar 2012 16:20:54 +0000
(12:20 -0400)
sfa/openstack/euca_shell.py
patch
|
blob
|
history
diff --git
a/sfa/openstack/euca_shell.py
b/sfa/openstack/euca_shell.py
index
df0584a
..
3dbe9a8
100644
(file)
--- a/
sfa/openstack/euca_shell.py
+++ b/
sfa/openstack/euca_shell.py
@@
-15,7
+15,8
@@
class EucaShell:
A xmlrpc connection to the euca api.
"""
- def __init__(self):
+ def __init__(self, config):
+ self.config = config
self.nova_shell = NovaShell(config)
self.access_key = None
self.secret_key = None
@@
-39,7
+40,7
@@
class EucaShell:
if username and project:
self._init_ctx(username, project)
- elif not self.access_key or not self.secret_key
+ elif not self.access_key or not self.secret_key
:
self._init_ctx()
url = self.config.SFA_NOVA_API_URL