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:
6782d10
)
cleanup
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 10 Oct 2011 22:53:03 +0000
(18:53 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 10 Oct 2011 22:53:03 +0000
(18:53 -0400)
sfa/rspecs/sfa_rspec_converter.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/sfa_rspec_converter.py
b/sfa/rspecs/sfa_rspec_converter.py
index
368ce6b
..
6ba56c1
100755
(executable)
--- a/
sfa/rspecs/sfa_rspec_converter.py
+++ b/
sfa/rspecs/sfa_rspec_converter.py
@@
-80,15
+80,6
@@
class SfaRSpecConverter:
location_attrs['longitude'] = location.get('longitude', 'None')
pg_rspec.xml.add_element('location', location_attrs, parent=node_element)
location_attrs['longitude'] = location.get('longitude', 'None')
pg_rspec.xml.add_element('location', location_attrs, parent=node_element)
- sliver_element = sfa_node_element.find('sliver')
- if sliver_element != None:
- if content_type == 'request':
- # remove all child elements
- for child in sfa_node_element.iterchildren():
- sfa_node_element.remove(child)
- # add the sliver
- pg_rspec.xml.add_element('sliver_type', {'name': 'planetlab-vnode'}, parent=node_element)
-
return pg_rspec.toxml()
if __name__ == '__main__':
return pg_rspec.toxml()
if __name__ == '__main__':