From: Tony Mack Date: Wed, 5 Aug 2009 19:26:20 +0000 (+0000) Subject: fix name error bugs X-Git-Tag: sfa-0.9-1~117 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=065bcb59ebb6c571e081feed0193a052850bcecb;p=sfa.git fix name error bugs --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index 2bc10689..af9e4660 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -167,7 +167,7 @@ class Slices(SimpleStorage): # Make sure slice exists at plc, if it doesnt add it slicename = hrn_to_pl_slicename(hrn) - slices = self.api.plshell.GetSlices(self.api.plauth, [slicename], ['node_ids']) + slices = self.api.plshell.GetSlices(self.api.plauth, [slicename], ['slice_id', 'node_ids']) if not slices: parts = slicename.split("_") login_base = parts[0] @@ -239,7 +239,7 @@ class Slices(SimpleStorage): self.api.plshell.BindObjectToPeer(self.api.plauth, 'person', person_id, peer, person_record['pointer']) key_ids = [] else: - preson_id = persons[0]['person_id'] + person_id = persons[0]['person_id'] key_ids = persons[0]['key_ids'] # if this is a peer person, we must unbind them from the peer or PLCAPI will throw