git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
> was right
[plcapi.git]
/
PLC
/
Methods
/
UpdateSliceTag.py
diff --git
a/PLC/Methods/UpdateSliceTag.py
b/PLC/Methods/UpdateSliceTag.py
index
932d638
..
7b8aed2
100644
(file)
--- a/
PLC/Methods/UpdateSliceTag.py
+++ b/
PLC/Methods/UpdateSliceTag.py
@@
-60,7
+60,7
@@
class UpdateSliceTag(Method):
else:
### make node's min_role_id == PI min_role_id
node_role_id = 20
else:
### make node's min_role_id == PI min_role_id
node_role_id = 20
- if slice_tag['min_role_id'] is not None and node_role_id >
=
slice_tag['min_role_id']:
+ if slice_tag['min_role_id'] is not None and node_role_id > slice_tag['min_role_id']:
raise PLCPermissionDenied, "Not allowed to update the specified slice attribute"
if slice_tag['tagname'] in ['initscript']:
raise PLCPermissionDenied, "Not allowed to update the specified slice attribute"
if slice_tag['tagname'] in ['initscript']: