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_hostgroup.py | |
parent | 48a278047db50f919a45ef82a57a6983804ed523 (diff) | |
download | freeipa.git-5717c9d6689f15c46801f2d251e174fad4ce4748.tar.gz freeipa.git-5717c9d6689f15c46801f2d251e174fad4ce4748.tar.xz freeipa.git-5717c9d6689f15c46801f2d251e174fad4ce4748.zip |
Applied Rob's errors patch
Diffstat (limited to 'ipalib/plugins/f_hostgroup.py')
-rw-r--r-- | ipalib/plugins/f_hostgroup.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/plugins/f_hostgroup.py b/ipalib/plugins/f_hostgroup.py index 706712c9..85dbfc49 100644 --- a/ipalib/plugins/f_hostgroup.py +++ b/ipalib/plugins/f_hostgroup.py @@ -21,7 +21,7 @@ Frontend plugins for groups of hosts """ -from ipalib import api, crud, errors +from ipalib import api, crud, errors2 from ipalib import Object, Command # Plugin base classes from ipalib import Str # Parameter types @@ -249,7 +249,7 @@ class hostgroup_add_member(Command): try: member_dn = ldap.find_entry_dn("cn", m, hostgroup_filter) to_add.append(member_dn) - except errors.NotFound: + except errors2.NotFound: add_failed.append(m) continue @@ -259,7 +259,7 @@ class hostgroup_add_member(Command): try: member_dn = ldap.find_entry_dn("cn", m, "ipaHost") to_add.append(member_dn) - except errors.NotFound: + except errors2.NotFound: add_failed.append(m) continue @@ -317,7 +317,7 @@ class hostgroup_remove_member(Command): try: member_dn = ldap.find_entry_dn("cn", m, hostgroup_filter) to_remove.append(member_dn) - except errors.NotFound: + except errors2.NotFound: remove_failed.append(m) continue @@ -327,7 +327,7 @@ class hostgroup_remove_member(Command): try: member_dn = ldap.find_entry_dn("cn", m, "ipaHost") to_remove.append(member_dn) - except errors.NotFound: + except errors2.NotFound: remove_failed.append(m) continue |