From b56805d9306204eb657ce284b8df6dc23d7fd812 Mon Sep 17 00:00:00 2001 From: parmentelat Date: Mon, 14 Jan 2019 21:11:08 +0100 Subject: [PATCH] serious bugfix in lease updates --- PLC/Methods/UpdateLeases.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PLC/Methods/UpdateLeases.py b/PLC/Methods/UpdateLeases.py index b1c3e1f..2c7b2ab 100644 --- a/PLC/Methods/UpdateLeases.py +++ b/PLC/Methods/UpdateLeases.py @@ -81,7 +81,7 @@ class UpdateLeases(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 {}".format(slice['name'])) @@ -89,7 +89,6 @@ class UpdateLeases(Method): raise PLCPermissionDenied( "Slice {} not associated with any of your sites" .format(slice['name'])) - slice['verified'] = True try: # we've ruled out already the case where all 3 (from, to, -- 2.43.0