summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-12 09:55:11 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-12 09:55:11 -0700
commitf04aaff97c9c8c22b36706f2c6d4de6f23d06b95 (patch)
tree64937c8d6f7d394f4c077585d124ecd0331b1f80 /ipalib/cli.py
parent09161e399a61e2a548e9efb3c3abb2c7b47d5520 (diff)
downloadfreeipa.git-f04aaff97c9c8c22b36706f2c6d4de6f23d06b95.tar.gz
freeipa.git-f04aaff97c9c8c22b36706f2c6d4de6f23d06b95.tar.xz
freeipa.git-f04aaff97c9c8c22b36706f2c6d4de6f23d06b95.zip
output_for_cli signature is now output_for_cli(textui, result, *args, **options)
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 8878c212..d86647c6 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -535,7 +535,8 @@ class CLI(object):
try:
ret = cmd(**kw)
if callable(cmd.output_for_cli):
- cmd.output_for_cli(self.api.Backend.textui, ret, **kw)
+ (args, options) = cmd.params_2_args_options(kw)
+ cmd.output_for_cli(self.api.Backend.textui, ret, *args, **options)
return 0
except socket.error, e:
print e[1]