summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2008-12-17 17:21:25 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-12-17 17:21:25 -0700
commit360f95341a78e2fd601a38ffa103a5f5cbe8c424 (patch)
tree8577b53c2f1933f7e2510829f80d80c618bc2cf8 /ipalib/cli.py
parentf0bbe1b5a09e1e2fc33d662c4775203f594af416 (diff)
downloadfreeipa-360f95341a78e2fd601a38ffa103a5f5cbe8c424.tar.gz
freeipa-360f95341a78e2fd601a38ffa103a5f5cbe8c424.tar.xz
freeipa-360f95341a78e2fd601a38ffa103a5f5cbe8c424.zip
Fix show_api command
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index a0fe63db2..0bab952bf 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -443,11 +443,11 @@ class show_api(frontend.Application):
else:
for name in namespaces:
if name not in self.api:
- exit_error('api has no such namespace: %s' % name)
+ raise errors.NoSuchNamespaceError(name)
names = namespaces
lines = self.__traverse(names)
ml = max(len(l[1]) for l in lines)
- self.print_name()
+ self.Backend.textui.print_name('run')
first = True
for line in lines:
if line[0] == 0 and not first:
@@ -463,7 +463,7 @@ class show_api(frontend.Application):
s = '1 attribute shown.'
else:
s = '%d attributes show.' % len(lines)
- self.print_dashed(s)
+ self.Backend.textui.print_dashed(s)
def __traverse(self, names):