git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
namespace module is gone, plxrn provides PL-specific translations
[sfa.git]
/
sfa
/
methods
/
reset_slice.py
diff --git
a/sfa/methods/reset_slice.py
b/sfa/methods/reset_slice.py
index
9d0e0f0
..
9d02364
100644
(file)
--- a/
sfa/methods/reset_slice.py
+++ b/
sfa/methods/reset_slice.py
@@
-2,7
+2,7
@@
### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/reset_slices.py $
from sfa.util.faults import *
### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/reset_slices.py $
from sfa.util.faults import *
-from sfa.util.
namespace import *
+from sfa.util.
xrn import urn_to_hrn
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
from sfa.trust.auth import Auth
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
from sfa.trust.auth import Auth
@@
-30,7
+30,7
@@
class reset_slice(Method):
def call(self, cred, xrn, origin_hrn=None):
hrn, type = urn_to_hrn(xrn)
def call(self, cred, xrn, origin_hrn=None):
hrn, type = urn_to_hrn(xrn)
- self.api.auth.check(cred, 'resetslice')
+ self.api.auth.check(cred, 'resetslice'
, hrn
)
# send the call to the right manager
manager_base = 'sfa.managers'
if self.api.interface in ['component']:
# send the call to the right manager
manager_base = 'sfa.managers'
if self.api.interface in ['component']: