Fix bug: number of found entries was reported incorrectly in some plugins.

This commit is contained in:
Pavel Zuna 2009-07-02 15:19:54 +02:00 committed by Rob Crittenden
parent 537ba4034d
commit 34b5b0d563
4 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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)

View File

@ -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)