summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-07-26 17:51:18 -0400
committerRob Crittenden <rcritten@redhat.com>2010-08-06 13:12:42 -0400
commit830910d1f30de22c037f43d7bcba33bd877a5581 (patch)
treed13f8b8d124dde5c30bcd480f0eb2a4d92fdda84 /ipalib
parentefa11d3746c8649f5cb42be9e4787a85413b0f6c (diff)
downloadfreeipa-830910d1f30de22c037f43d7bcba33bd877a5581.tar.gz
freeipa-830910d1f30de22c037f43d7bcba33bd877a5581.tar.xz
freeipa-830910d1f30de22c037f43d7bcba33bd877a5581.zip
Have the env plugin print all attributes by default
ticket #113
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/misc.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ipalib/plugins/misc.py b/ipalib/plugins/misc.py
index d4c6c7ba2..70ee61b7c 100644
--- a/ipalib/plugins/misc.py
+++ b/ipalib/plugins/misc.py
@@ -24,6 +24,7 @@ Misc plugins
import re
from ipalib import api, LocalOrRemote, _, ngettext
from ipalib.output import Output, summary
+from ipalib import Flag
# FIXME: We should not let env return anything in_server
# when mode == 'production'. This would allow an attacker to see the
@@ -40,6 +41,16 @@ class env(LocalOrRemote):
'variables*',
)
+ takes_options = LocalOrRemote.takes_options + (
+ Flag('all',
+ cli_name='all',
+ doc=_('retrieve all attributes'),
+ exclude='webui',
+ flags=['no_output'],
+ default=True,
+ ),
+ )
+
has_output = (
Output('result',
type=dict,