convert attribute to string
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 28 Jun 2011 17:00:24 +0000 (13:00 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 28 Jun 2011 17:00:24 +0000 (13:00 -0400)
sfa/rspecs/pg_rspec.py

index 048658f..ac51303 100755 (executable)
@@ -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)