### $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 *
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