summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-09-24 16:46:27 +0200
committerMartin Kosek <mkosek@redhat.com>2014-09-25 09:58:47 +0200
commit32b6eb5110b2f851fbedb39ac0d853b46087465f (patch)
tree1bae959c6c41d204c1e35f03d06edd97113cca00 /ipalib
parente629763af9b4b7ce19109ec6ea915d43bb054879 (diff)
downloadfreeipa-32b6eb5110b2f851fbedb39ac0d853b46087465f.tar.gz
freeipa-32b6eb5110b2f851fbedb39ac0d853b46087465f.tar.xz
freeipa-32b6eb5110b2f851fbedb39ac0d853b46087465f.zip
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>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/dns.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 463cd151c..5a006cacc 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -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,