From 5717c9d6689f15c46801f2d251e174fad4ce4748 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 28 Jan 2009 21:47:21 -0700 Subject: Applied Rob's errors patch --- ipalib/plugins/f_hostgroup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipalib/plugins/f_hostgroup.py') 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 -- cgit