fix string conversion
[sfa.git] / sfa / rspecs / pg_rspec.py
index ac51303..3702e0c 100755 (executable)
@@ -130,11 +130,11 @@ class PGRSpec(RSpec):
             # vms available at the node. 
             # only add location tag if longitude and latitude are not null
             if 'site' in node:
-                longitude = str(node['site'].get('longitude', None))
-                latitude = str(node['site'].get('latitude', None))
+                longitude = node['site'].get('longitude', None))
+                latitude = node['site'].get('latitude', None))
                 if longitude and latitude:
                     location_tag = etree.SubElement(node_tag, 'location', country="us", \
-                                                    longitude=longitude, latitude=latitude)
+                                                    longitude=str(longitude), latitude=str(latitude))
 
 
     def add_slivers(self, slivers, sliver_urn=None, no_dupes=False):