From 5fcb675a8b064aa6b2a2529703ed7911bff3bb04 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Fri, 24 Feb 2023 12:58:29 +1300 Subject: [PATCH] s4/scripting: fix % len(res) was in the wrong place Signed-off-by: Rob van der Linde Reviewed-by: Joseph Sutton Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri May 5 05:54:11 UTC 2023 on atb-devel-224 --- source4/scripting/bin/samba_upgradeprovision | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision index 03422af598e..b18b4778ebd 100755 --- a/source4/scripting/bin/samba_upgradeprovision +++ b/source4/scripting/bin/samba_upgradeprovision @@ -314,7 +314,7 @@ def sanitychecks(samdb, names): print("Found %d domain controllers. For the moment " "upgradeprovision is not able to handle an upgrade on a " "domain with more than one DC. Please demote the other " - "DC(s) before upgrading") % len(res) + "DC(s) before upgrading" % len(res)) return False else: return True