diff options
Diffstat (limited to 'ipalib/plugins/f_host.py')
-rw-r--r-- | ipalib/plugins/f_host.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugins/f_host.py b/ipalib/plugins/f_host.py index ea819a77..17bec977 100644 --- a/ipalib/plugins/f_host.py +++ b/ipalib/plugins/f_host.py @@ -21,7 +21,7 @@ Frontend plugins for host/machine Identity. """ -from ipalib import api, crud, errors, util +from ipalib import api, crud, errors2, util from ipalib import Object # Plugin base class from ipalib import Str, Flag # Parameter types @@ -38,7 +38,7 @@ def get_host(hostname): hostname = hostname[:-1] try: dn = ldap.find_entry_dn("cn", hostname, "ipaHost") - except errors.NotFound: + except errors2.NotFound: dn = ldap.find_entry_dn("serverhostname", hostname, "ipaHost") return dn @@ -120,7 +120,7 @@ class host_add(crud.Add): current = util.get_current_principal() if not current: - raise errors.NotFound('Unable to determine current user') + raise errors2.NotFound('Unable to determine current user') kw['enrolledby'] = ldap.find_entry_dn("krbPrincipalName", current, "posixAccount") # Get our configuration |