remove refrences to self
authorTony Mack <tmack@cs.princeton.edu>
Tue, 1 Dec 2009 23:09:04 +0000 (23:09 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 1 Dec 2009 23:09:04 +0000 (23:09 +0000)
sfa/managers/slice_manager_pl.py

index f1be463..90042f3 100644 (file)
@@ -38,7 +38,7 @@ def delete_slice(api, hrn, caller_cred=None):
         if not success:
             try:
                 arg_list = [credential, hrn]
-                request_hash = self.api.key.compute_hash(arg_list)
+                request_hash = api.key.compute_hash(arg_list)
                 aggregates[aggregate].delete_slice(credential, hrn, request_hash, caller_cred)
                 success = True
             except:
@@ -72,7 +72,6 @@ def create_slice(api, hrn, rspec, caller_cred=None):
         rspecs[net_hrn] = tempspec.toxml()
 
     # send each rspec to the appropriate aggregate/sm
-    caller_cred = self.caller_cred
     for net_hrn in rspecs:
         try:
             # if we are directly connected to the aggregate then we can just