diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-01-10 14:21:45 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-01-11 10:23:31 -0500 |
commit | c7789199f9541844bf8c36a85311ba957a1c1dcb (patch) | |
tree | 2c1886530bb4465e961796f25da39bcb6bab2ee5 /ipalib/plugins/host.py | |
parent | 06179dc105239496a7b0e55fc4a19ce576033565 (diff) | |
download | freeipa-c7789199f9541844bf8c36a85311ba957a1c1dcb.tar.gz freeipa-c7789199f9541844bf8c36a85311ba957a1c1dcb.tar.xz freeipa-c7789199f9541844bf8c36a85311ba957a1c1dcb.zip |
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
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r-- | ipalib/plugins/host.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 2abe70a12..f5dad59a9 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) |