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
(from parent 1:
afd10f8
)
fix bug in get_slices
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 3 Feb 2010 22:11:29 +0000
(22:11 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 3 Feb 2010 22:11:29 +0000
(22:11 +0000)
sfa/managers/component_manager_pl.py
patch
|
blob
|
history
diff --git
a/sfa/managers/component_manager_pl.py
b/sfa/managers/component_manager_pl.py
index
2e1b3c3
..
2f79558
100644
(file)
--- a/
sfa/managers/component_manager_pl.py
+++ b/
sfa/managers/component_manager_pl.py
@@
-38,8
+38,13
@@
def reset_slice(api, xrn):
api.nodemanager.ReCreate(slicename)
def get_slices(api):
- slicenames = api.nodemanager.GetXIDs().keys()
- return slicenames
+ # this returns a tuple, the data we want is at index 1
+ xids = api.nodemanager.GetXIDs()
+ # unfortunately the data we want is given to us as
+ # a string but we really want it as a dict
+ # lets eval it
+ slices = eval(xids[1])
+ return slices.keys()
def roboot():
os.system("/sbin/reboot")