It was inheriting from LDAPCreate so had add and setattr!?
ticket 652. rob
>From 90448373d97ec5a4981195d62bf3e9fbba95c3b3 Mon Sep 17 00:00:00 2001 From: Rob Crittenden <rcrit...@redhat.com> Date: Mon, 3 Jan 2011 16:03:06 -0500 Subject: [PATCH] Remove unnecessary options from host-del. For some reason it was inheriting LDAPCreate.options... ticket 652 --- ipalib/plugins/host.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 701996b..283c2c1 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -375,7 +375,7 @@ class host_del(LDAPDelete): msg_summary = _('Deleted host "%(value)s"') member_attributes = ['managedby'] - takes_options = LDAPCreate.takes_options + ( + takes_options = ( Flag('updatedns?', doc=_('Remove entries from DNS'), default=False, -- 1.7.3.4
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel