git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added 'message' instance variable (high level description of this event)
[plcapi.git]
/
PLC
/
Methods
/
AdmQueryNode.py
diff --git
a/PLC/Methods/AdmQueryNode.py
b/PLC/Methods/AdmQueryNode.py
index
b2fe695
..
f41d04f
100644
(file)
--- a/
PLC/Methods/AdmQueryNode.py
+++ b/
PLC/Methods/AdmQueryNode.py
@@
-30,7
+30,7
@@
class AdmQueryNode(Method):
def call(self, auth, search_vals):
# Get possible nodenetworks
if 'node_hostname' in search_vals:
def call(self, auth, search_vals):
# Get possible nodenetworks
if 'node_hostname' in search_vals:
- nodes = Nodes(self.api, [search_vals['node_hostname']])
.values()
+ nodes = Nodes(self.api, [search_vals['node_hostname']])
if not nodes:
return []
if not nodes:
return []
@@
-41,11
+41,11
@@
class AdmQueryNode(Method):
return [nodes[0]['node_id']]
if nodes[0]['nodenetwork_ids']:
return [nodes[0]['node_id']]
if nodes[0]['nodenetwork_ids']:
- nodenetworks = NodeNetworks(self.api, nodes[0]['nodenetwork_ids'])
.values()
+ nodenetworks = NodeNetworks(self.api, nodes[0]['nodenetwork_ids'])
else:
nodenetworks = []
else:
else:
nodenetworks = []
else:
- nodenetworks = NodeNetworks(self.api)
.values()
+ nodenetworks = NodeNetworks(self.api)
if 'nodenetwork_ip' in search_vals:
if not valid_ip(search_vals['nodenetwork_ip']):
if 'nodenetwork_ip' in search_vals:
if not valid_ip(search_vals['nodenetwork_ip']):