diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-30 06:37:16 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-30 16:32:20 +0200 |
commit | ae5f11b4de1d5e353a2e1b8345e316949f4b75ed (patch) | |
tree | 33511a859f80bc8119e853135fc07076f451630b /ipaserver/plugins/aci.py | |
parent | 16f33ddb51523fe9a4c68e91519099991ece10a5 (diff) | |
download | freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.tar.gz freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.tar.xz freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.zip |
server: define missing virtual attributes
Move virtual attributes defined in output params of methods into params of
the related object.
This fixes the virtual attributes being ommited in CLI output.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins/aci.py')
-rw-r--r-- | ipaserver/plugins/aci.py | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/ipaserver/plugins/aci.py b/ipaserver/plugins/aci.py index dd14d82b6..56478272b 100644 --- a/ipaserver/plugins/aci.py +++ b/ipaserver/plugins/aci.py @@ -507,6 +507,10 @@ class aci(Object): flags=('virtual_attribute',), ), _prefix_option, + Str('aci', + label=_('ACI'), + flags={'no_create', 'no_update', 'no_search'}, + ), ) @@ -611,11 +615,6 @@ class aci_mod(crud.Update): Modify ACI. """ NO_CLI = True - has_output_params = ( - Str('aci', - label=_('ACI'), - ), - ) takes_options = (_prefix_option,) @@ -886,12 +885,6 @@ class aci_show(crud.Retrieve): """ NO_CLI = True - has_output_params = ( - Str('aci', - label=_('ACI'), - ), - ) - takes_options = ( _prefix_option, DNParam('location?', @@ -932,11 +925,6 @@ class aci_rename(crud.Update): Rename an ACI. """ NO_CLI = True - has_output_params = ( - Str('aci', - label=_('ACI'), - ), - ) takes_options = ( _prefix_option, |