convert the hrn to a planetlab slice name
[sfa.git] / sfacomponent / methods / delete_slice.py
index ce7be45..95337e0 100644 (file)
@@ -34,6 +34,7 @@ class delete_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, 'deleteslice')
-        self.api.nodemanager.Destroy(hrn)
+        slicename = hrn_to_pl_slicename(hrn)
+        self.api.nodemanager.Destroy(slicename)
         
         return 1