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:
c6dbd3e
)
convert attribute to string
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 28 Jun 2011 17:00:24 +0000
(13:00 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 28 Jun 2011 17:00:24 +0000
(13:00 -0400)
sfa/rspecs/pg_rspec.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/pg_rspec.py
b/sfa/rspecs/pg_rspec.py
index
048658f
..
ac51303
100755
(executable)
--- a/
sfa/rspecs/pg_rspec.py
+++ b/
sfa/rspecs/pg_rspec.py
@@
-130,8
+130,8
@@
class PGRSpec(RSpec):
# vms available at the node.
# only add location tag if longitude and latitude are not null
if 'site' in node:
- longitude =
node['site'].get('longitude', None
)
- latitude =
node['site'].get('latitude', None
)
+ longitude =
str(node['site'].get('longitude', None)
)
+ latitude =
str(node['site'].get('latitude', None)
)
if longitude and latitude:
location_tag = etree.SubElement(node_tag, 'location', country="us", \
longitude=longitude, latitude=latitude)