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:
Martin Basti 2014-09-24 16:46:27 +02:00 committed by Martin Kosek
parent b7a6d7937e
commit 2f1f122170

View File

@ -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,