diff options
author | Martin Babinsky <mbabinsk@redhat.com> | 2016-11-28 15:22:41 +0100 |
---|---|---|
committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-12-02 13:00:06 +0100 |
commit | 64a4be26febf19e427760115912a858a804208a0 (patch) | |
tree | 5cc3e593cef145a932849b04c993fedbe9389394 /ipalib | |
parent | 0ae7bebb7690620b69fd9c84b7a385c2086c1ee1 (diff) | |
download | freeipa-64a4be26febf19e427760115912a858a804208a0.tar.gz freeipa-64a4be26febf19e427760115912a858a804208a0.tar.xz freeipa-64a4be26febf19e427760115912a858a804208a0.zip |
Fix pep-8 transgressions in ipalib/misc.py
Make the code moved from `ipaserver/plugins` pep-8 conformant.
https://fedorahosted.org/freeipa/ticket/6490
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/misc.py | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/ipalib/misc.py b/ipalib/misc.py index 7206d2989..687b018fe 100644 --- a/ipalib/misc.py +++ b/ipalib/misc.py @@ -26,9 +26,11 @@ class env(LocalOrRemote): ) takes_options = LocalOrRemote.takes_options + ( - Flag('all', + Flag( + 'all', cli_name='all', - doc=_('retrieve and print all attributes from the server. Affects command output.'), + doc=_('retrieve and print all attributes from the server. ' + 'Affects command output.'), exclude='webui', flags=['no_option', 'no_output'], default=True, @@ -36,16 +38,19 @@ class env(LocalOrRemote): ) has_output = ( - Output('result', + Output( + 'result', type=dict, doc=_('Dictionary mapping variable name to value'), ), - Output('total', + Output( + 'total', type=int, doc=_('Total number of variables env (>= count)'), flags=['no_display'], ), - Output('count', + Output( + 'count', type=int, doc=_('Number of variables returned (<= total)'), flags=['no_display'], @@ -84,7 +89,6 @@ class env(LocalOrRemote): return ret - class plugins(LocalOrRemote): __doc__ = _('Show all loaded plugins.') @@ -93,9 +97,11 @@ class plugins(LocalOrRemote): ) takes_options = LocalOrRemote.takes_options + ( - Flag('all', + Flag( + 'all', cli_name='all', - doc=_('retrieve and print all attributes from the server. Affects command output.'), + doc=_('retrieve and print all attributes from the server. ' + 'Affects command output.'), exclude='webui', flags=['no_option', 'no_output'], default=True, @@ -104,7 +110,8 @@ class plugins(LocalOrRemote): has_output = ( Output('result', dict, 'Dictionary mapping plugin names to bases'), - Output('count', + Output( + 'count', type=int, doc=_('Number of plugins loaded'), ), |