From 8593ddd57552c41d48c8ae68acaea1c97bbaac6c Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 28 Jun 2011 13:00:24 -0400 Subject: [PATCH] convert attribute to string --- sfa/rspecs/pg_rspec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/rspecs/pg_rspec.py b/sfa/rspecs/pg_rspec.py index 048658f5..ac513039 100755 --- 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) -- 2.47.0