]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
py/dbcheck: improve 'please --fix' message
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 17 Sep 2022 06:18:25 +0000 (18:18 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 19 Sep 2022 06:10:36 +0000 (06:10 +0000)
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>
python/samba/dbchecker.py

index 1f0662d8c05a98d1dea79fd8e77155b9a802cebe..c3485292f04f950f7968b91f0067c5d23ee29d17 100644 (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