mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-14 02:11:56 -06:00
dnszone-remove-permission should raise error
dnszone-remove-permission should raise NotFound error if permission was
not found (regression of 21c829ff
).
Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
parent
b7a6d7937e
commit
2f1f122170
@ -2049,10 +2049,7 @@ class DNSZoneBase_remove_permission(LDAPQuery):
|
||||
pass
|
||||
|
||||
permission_name = self.obj.permission_name(keys[-1])
|
||||
try:
|
||||
self.obj._remove_permission(keys[-1])
|
||||
except errors.NotFound:
|
||||
pass
|
||||
self.obj._remove_permission(keys[-1])
|
||||
|
||||
return dict(
|
||||
result=True,
|
||||
|
Loading…
Reference in New Issue
Block a user