fix NameError
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 7 Sep 2011 17:50:25 +0000 (13:50 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 7 Sep 2011 17:50:25 +0000 (13:50 -0400)
sfa/plc/slices.py

index 84698f3..b67ded5 100644 (file)
@@ -230,7 +230,7 @@ class Slices:
         (slice_hrn, type) = urn_to_hrn(slice_xrn)
         site_hrn = get_authority(slice_hrn)
         # login base can't be longer than 20 characters
-        slicename = hrn_to_pl_slicename(hrn)
+        slicename = hrn_to_pl_slicename(slice_hrn)
         authority_name = slicename.split('_')[0]
         login_base = authority_name[:20]
         sites = self.api.plshell.GetSites(self.api.plauth, login_base)