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:
7bcf978
)
fix NameError
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 2 May 2011 18:08:41 +0000
(14:08 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 2 May 2011 18:08:41 +0000
(14:08 -0400)
sfa/rspecs/pg_rspec.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/pg_rspec.py
b/sfa/rspecs/pg_rspec.py
index
bc8d19f
..
c321d25
100755
(executable)
--- a/
sfa/rspecs/pg_rspec.py
+++ b/
sfa/rspecs/pg_rspec.py
@@
-60,7
+60,7
@@
class PGRSpec(RSpec):
node_tag = etree.SubElement(self.xml, 'node')
if 'network' in node:
node_tag = etree.SubElement(self.xml, 'node')
if 'network' in node:
- node_tag.set('component_manager_id', n
etwork
)
+ node_tag.set('component_manager_id', n
ode['network']
)
if 'urn' in node:
node_tag.set('component_id', node['urn'])
if 'hostname' in node:
if 'urn' in node:
node_tag.set('component_id', node['urn'])
if 'hostname' in node:
@@
-71,9
+71,9
@@
class PGRSpec(RSpec):
location_tag = etree.SubElement(node_tag, 'location', location="US")
if 'site' in node:
if 'longitude' in node['site']:
location_tag = etree.SubElement(node_tag, 'location', location="US")
if 'site' in node:
if 'longitude' in node['site']:
- location_tag.set('longitude',
site
['longitude'])
+ location_tag.set('longitude',
node['site']
['longitude'])
if 'latitude' in node['site']:
if 'latitude' in node['site']:
- location_tag.set('latitude',
site
['latitude'])
+ location_tag.set('latitude',
node['site']
['latitude'])
#if 'interfaces' in node:
#if 'interfaces' in node: