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:
d8902f7
)
fix name error
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 28 Mar 2011 21:06:29 +0000
(17:06 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 28 Mar 2011 21:06:29 +0000
(17:06 -0400)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
9388e08
..
71f0bd1
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-568,10
+568,8
@@
class Network:
tmp = []
for node in api.plshell.GetNodes(api.plauth, {'peer_id': None}):
try:
tmp = []
for node in api.plshell.GetNodes(api.plauth, {'peer_id': None}):
try:
- nodeObj = Node(self, node)
- if nodeObj.site != None:
- t = node['node_id'], nodeObj
- tmp.append(t)
+ t = node['node_id'], Node(self, node)
+ tmp.append(t)
except:
self.api.logger.error("Failed to add node %s (%s) to RSpec" % (node['hostname'], node['node_id']))
except:
self.api.logger.error("Failed to add node %s (%s) to RSpec" % (node['hostname'], node['node_id']))