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:
7e5f956
)
rspecs/iotlab: fixed missing position element during RSpec parsing
author
Jordan Augé
<jordan.auge@lip6.fr>
Tue, 24 Sep 2013 13:47:39 +0000
(15:47 +0200)
committer
Jordan Augé
<jordan.auge@lip6.fr>
Tue, 24 Sep 2013 13:47:39 +0000
(15:47 +0200)
sfa/rspecs/elements/versions/iotlabv1Node.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/elements/versions/iotlabv1Node.py
b/sfa/rspecs/elements/versions/iotlabv1Node.py
index
af3d0d4
..
6a95d23
100644
(file)
--- a/
sfa/rspecs/elements/versions/iotlabv1Node.py
+++ b/
sfa/rspecs/elements/versions/iotlabv1Node.py
@@
-257,6
+257,12
@@
class Iotlabv1Node:
node['interfaces'] = [iface_elem.get_instance(Interface)
for iface_elem in iface_elems]
+ # get position
+ position_elems = node_elem.xpath('./default:position | ./position')
+ if position_elems:
+ position_elem = position_elems[0]
+ node['position'] = position_elem.get_instance(IotlabPosition)
+
# get services
#node['services'] = PGv2Services.get_services(node_elem)