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>
"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