1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

py/dbcheck: improve 'please --fix' message

The dbcheck module is used in places other than samba-tool (backup,
provision) where the old 'use --fix' message made no sense. Also,
now that we're not necessarily claiming to fix all errors, we say
how many we think we can.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall
2022-09-17 18:18:25 +12:00
committed by Andrew Bartlett
parent 10bcf2bb08
commit 98c7af0394

View File

@@ -273,7 +273,8 @@ class dbcheck(object):
"of these errors cannot be automatically fixed.")
if error_count != 0 and not self.fix:
self.report("Please use --fix to fix these errors")
self.report("Please use 'samba-tool dbcheck --fix' to fix "
f"{error_count} errors")
return error_count