diff options
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 706712c9a..85dbfc496 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 |