From c7789199f9541844bf8c36a85311ba957a1c1dcb Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 10 Jan 2011 14:21:45 -0500 Subject: Fix output of failed managedby hosts, allow a host to manage itself. The output problem was a missing label for failed managedby. This also fixes a call to print_entry that was missing the flags argument. Add a flag to specify whether a group can be a member of itself, defaulting to False. ticket 708 --- ipalib/plugins/host.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipalib/plugins/host.py') diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 2abe70a1..f5dad59a 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -133,6 +133,10 @@ host_output_params = ( ), Str('revocation_reason?', label=_('Revocation reason'), + ), + Str('managedby?', + label=_('Failed managedby'), + flags=['no_create', 'no_update'], ) ) @@ -726,6 +730,7 @@ class host_add_managedby(LDAPAddMember): """ member_attributes = ['managedby'] has_output_params = LDAPAddMember.has_output_params + host_output_params + allow_same = True api.register(host_add_managedby) -- cgit