File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -3148,7 +3148,6 @@ def grant(self, *capabilities_to_grant):
31483148 for capability in capabilities_to_grant :
31493149 if capability not in possible_capabilities :
31503150 raise NoSuchCapability (capability )
3151- self .refresh ()
31523151 new_capabilities = self ['capabilities' ] + list (capabilities_to_grant )
31533152 self .post (capabilities = new_capabilities )
31543153 return self
@@ -3174,11 +3173,7 @@ def revoke(self, *capabilities_to_revoke):
31743173 for capability in capabilities_to_revoke :
31753174 if capability not in possible_capabilities :
31763175 raise NoSuchCapability (capability )
3177- self .refresh ()
31783176 old_capabilities = self ['capabilities' ]
3179- for capability in capabilities_to_revoke :
3180- if capability not in old_capabilities :
3181- raise ValueError ("Role does not have capability %s" % capability )
31823177 new_capabilities = []
31833178 for c in old_capabilities :
31843179 if c not in capabilities_to_revoke :
You can’t perform that action at this time.
0 commit comments