instead of passing caller_cred for tracability, now only the hrn of the initial calle...
[sfa.git] / sfacomponent / methods / stop_slice.py
index a5be98a..6fe6903 100644 (file)
@@ -1,5 +1,5 @@
 ### $Id: stop_slice.py 15428 2009-10-23 15:28:03Z tmack $
-### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/stop_slice.py $
+### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfacomponent/methods/stop_slice.py $
 
 from sfa.util.faults import *
 from sfa.util.misc import *
@@ -34,6 +34,7 @@ class stop_slice(Method):
         client_gid_str = client_gid.save_to_string(save_parents=True)
         self.api.auth.authenticateGid(client_gid_str, [cred, hrn], request_hash)
         self.api.auth.check(cred, 'stopslice')
-        self.api.nodemanager.Stop(hrn)
+        slicename = hrn_to_pl_slicename(hrn) 
+        self.api.nodemanager.Stop(slicename)
         
         return 1