From: Tony Mack Date: Thu, 30 Jun 2011 16:04:14 +0000 (-0400) Subject: fix typo X-Git-Tag: sfa-1.0-27~46 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6fed73924ff4cc0836cfc7edfcea1af80cfc9605;p=sfa.git fix typo --- diff --git a/sfa/rspecs/pg_rspec.py b/sfa/rspecs/pg_rspec.py index 3702e0c5..a21a2ab1 100755 --- a/sfa/rspecs/pg_rspec.py +++ b/sfa/rspecs/pg_rspec.py @@ -93,13 +93,13 @@ class PGRSpec(RSpec): return nodes def get_nodes_without_slivers(self, network=None): - pass + return [] def get_slice_attributes(self, network=None): - pass + return [] def get_default_sliver_attributes(self, network=None): - pass + return [] def add_default_sliver_attribute(self, name, value, network=None): pass @@ -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 = 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=str(longitude), latitude=str(latitude))