diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-01-28 21:47:21 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-03 15:29:04 -0500 |
commit | 5717c9d6689f15c46801f2d251e174fad4ce4748 (patch) | |
tree | 31e2a3378638bd63005a3d65d7fe74159860456c /ipalib/plugins/f_host.py | |
parent | 48a278047db50f919a45ef82a57a6983804ed523 (diff) | |
download | freeipa-5717c9d6689f15c46801f2d251e174fad4ce4748.tar.gz freeipa-5717c9d6689f15c46801f2d251e174fad4ce4748.tar.xz freeipa-5717c9d6689f15c46801f2d251e174fad4ce4748.zip |
Applied Rob's errors patch
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 ea819a77d..17bec9774 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 |