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:
8d20e49
)
Bug fix
author
Andy Bavier
<acb@cs.princeton.edu>
Tue, 9 Feb 2010 22:21:27 +0000
(22:21 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Tue, 9 Feb 2010 22:21:27 +0000
(22:21 +0000)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
1054725
..
d8a71a8
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-561,7
+561,7
@@
class Network:
def get_slice(self, api, hrn):
slicename = hrn_to_pl_slicename(hrn)
slice = api.plshell.GetSlices(api.plauth, [slicename])
- if
slice
:
+ if
len(slice)
:
self.slice = Slice(self, slicename, slice[0])
return self.slice
else: