diff options
author | Pavel Zuna <pzuna@redhat.com> | 2009-07-02 15:19:54 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-07-02 13:33:05 -0400 |
commit | 34b5b0d56363920d14062ef5816cd70efb145537 (patch) | |
tree | edb58efbf7afa3e5d5e0c9c096fdc38c418b43d6 /ipalib | |
parent | 537ba4034d6d5af77b13ff0d954247bb39b1fa5a (diff) | |
download | freeipa-34b5b0d56363920d14062ef5816cd70efb145537.tar.gz freeipa-34b5b0d56363920d14062ef5816cd70efb145537.tar.xz freeipa-34b5b0d56363920d14062ef5816cd70efb145537.zip |
Fix bug: number of found entries was reported incorrectly in some plugins.
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/dns.py | 4 | ||||
-rw-r--r-- | ipalib/plugins/host.py | 2 | ||||
-rw-r--r-- | ipalib/plugins/service.py | 2 | ||||
-rw-r--r-- | ipalib/plugins/user.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 8e6cc3c92..c94f02fbb 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -324,7 +324,7 @@ class dns_find(crud.Search): textui.print_entry(entry_attrs) textui.print_plain('') textui.print_count( - len(result), '%i DNS zone matched.', '%i DNS zones matched.' + len(entries), '%i DNS zone matched.', '%i DNS zones matched.' ) if truncated: textui.print_dashed('These results are truncated.', below=False) @@ -741,7 +741,7 @@ class dns_find_rr(Command): textui.print_entry(entry_attrs) textui.print_plain('') textui.print_count( - len(result), '%i DNS resource record matched.', + len(entries), '%i DNS resource record matched.', '%i DNS resource records matched.' ) if truncated: diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index c1fa987b4..fe46d2d5f 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -329,7 +329,7 @@ class host_find(crud.Search): textui.print_entry(entry_attrs) textui.print_plain('') textui.print_count( - len(result), '%i host matched.', '%i hosts matched.' + len(entries), '%i host matched.', '%i hosts matched.' ) if truncated: textui.print_dashed('These results are truncated.', below=False) diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py index 2f42a2b70..03204acb3 100644 --- a/ipalib/plugins/service.py +++ b/ipalib/plugins/service.py @@ -305,7 +305,7 @@ class service_find(crud.Search): textui.print_entry(entry_attrs) textui.print_plain('') textui.print_count( - len(result), '%i service matched.', '%i services matched.' + len(entries), '%i service matched.', '%i services matched.' ) if truncated: textui.print_dashed('These results are truncated.', below=False) diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index c5c99b65c..2b4ec5212 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -287,7 +287,7 @@ class user_find(crud.Search): textui.print_entry(entry_attrs) textui.print_plain('') textui.print_count( - len(result), '%i user matched.', '%i users matched.' + len(entries), '%i user matched.', '%i users matched.' ) if truncated: textui.print_dashed('These results are truncated.', below=False) |