From: Anil-Kumar Vengalil Date: Mon, 18 Jan 2010 14:46:07 +0000 (+0000) Subject: correcting indentation X-Git-Tag: sfa-0.9-10~13 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=eb8744f06017554a62357ee1167a80abd1e7c325 correcting indentation --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 12a05cd1..bca329eb 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -252,6 +252,8 @@ class Slices(SimpleStorage): def verify_site(self, registry, credential, slice_hrn, peer, sfa_peer): + import pdb + pdb.set_trace() authority = get_authority(slice_hrn) authority_urn = hrn_to_urn(authority, 'authority') site_records = registry.resolve(credential, authority_urn) @@ -491,7 +493,7 @@ class Slices(SimpleStorage): if old_record['max_slices'] != new_record['max_slices']: if peer: self.api.plshell.UnBindObjectFromPeer(self.api.plauth, 'site', old_record['site_id'], peer) - self.api.plshell.UpdateSite(self.api.plauth, old_record['site_id'], {'max_slices' : new_record['max_slices']}) + self.api.plshell.UpdateSite(self.api.plauth, old_record['site_id'], {'max_slices' : new_record['max_slices']}) if peer: self.api.plshell.BindObjectToPeer(self.api.plauth, 'site', old_record['site_id'], peer, old_record['peer_site_id']) return 1 @@ -500,7 +502,7 @@ class Slices(SimpleStorage): if old_record['expires'] != new_record['expires']: if peer: self.api.plshell.UnBindObjectFromPeer(self.api.plauth, 'slice', old_record['slice_id'], peer) - self.api.plshell.UpdateSlice(self.api.plauth, old_record['slice_id'], {'expires' : new_record['expires']}) + self.api.plshell.UpdateSlice(self.api.plauth, old_record['slice_id'], {'expires' : new_record['expires']}) if peer: self.api.plshell.BindObjectToPeer(self.api.plauth, 'slice', old_record['slice_id'], peer, old_record['peer_slice_id']) return 1