git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b56805d
)
adopt similar approach in delete leases, although this was harmless
author
parmentelat
<thierry.parmentelat@inria.fr>
Mon, 14 Jan 2019 20:11:32 +0000
(21:11 +0100)
committer
parmentelat
<thierry.parmentelat@inria.fr>
Mon, 14 Jan 2019 20:11:32 +0000
(21:11 +0100)
PLC/Methods/DeleteLeases.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/DeleteLeases.py
b/PLC/Methods/DeleteLeases.py
index
6914c98
..
506195a
100644
(file)
--- a/
PLC/Methods/DeleteLeases.py
+++ b/
PLC/Methods/DeleteLeases.py
@@
-44,12
+44,11
@@
class DeleteLeases(Method):
# check slices only once
if 'verified' not in slice:
if self.caller['person_id'] in slice['person_ids']:
- pass
+ slice['verified']=True
elif 'pi' not in self.caller['roles']:
raise PLCPermissionDenied("Not a member of slice %r"%slice['name'])
elif slice['site_id'] not in self.caller['site_ids']:
raise PLCPermissionDenied("Slice %r not associated with any of your sites"%slice['name'])
- slice['verified']=True
lease.delete()