summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/misc.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-10-13 11:28:00 -0600
committerJason Gerard DeRose <jderose@redhat.com>2009-10-13 11:28:00 -0600
commitf58ff2921defef330d53e08e427a82ced7585c88 (patch)
treec69823174d27be31d4488a331b3fde176f8e2679 /ipalib/plugins/misc.py
parent1d6e23136a0664a86b765c67a9308f0951652f74 (diff)
downloadfreeipa-f58ff2921defef330d53e08e427a82ced7585c88.tar.gz
freeipa-f58ff2921defef330d53e08e427a82ced7585c88.tar.xz
freeipa-f58ff2921defef330d53e08e427a82ced7585c88.zip
Giant webui patch take 2
Diffstat (limited to 'ipalib/plugins/misc.py')
-rw-r--r--ipalib/plugins/misc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/misc.py b/ipalib/plugins/misc.py
index 2dcc6554c..8bf9d81fd 100644
--- a/ipalib/plugins/misc.py
+++ b/ipalib/plugins/misc.py
@@ -45,20 +45,21 @@ class env(LocalOrRemote):
keys.add(key)
elif query in self.env:
keys.add(query)
- return sorted(keys)
+ return keys
def execute(self, variables, **options):
if variables is None:
keys = self.env
else:
keys = self.__find_keys(variables)
- return tuple(
+ return dict(
(key, self.env[key]) for key in keys
)
def output_for_cli(self, textui, result, variables, **options):
if len(result) == 0:
return
+ result = tuple((k, result[k]) for k in sorted(result))
if len(result) == 1:
textui.print_keyval(result)
return