convert the hrn to a planetlab slice name
[sfa.git] / sfacomponent / methods / stop_slice.py
index 38b479a..e4149b3 100644 (file)
@@ -5,7 +5,6 @@ from sfa.util.faults import *
 from sfa.util.misc import *
 from sfa.util.method import Method
 from sfa.util.parameter import Parameter, Mixed
-from sfa.trust.auth import Auth
 
 class stop_slice(Method):
     """
@@ -35,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