From: Douglas Bagnall Date: Fri, 26 Oct 2018 08:02:46 +0000 (+1300) Subject: python/remove_dc: fix formating syntax (missing %s) X-Git-Tag: tdb-1.3.17~1019 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fafd57998a19e4d7d92a7aebeb70d69bb427389;p=thirdparty%2Fsamba.git python/remove_dc: fix formating syntax (missing %s) Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/remove_dc.py b/python/samba/remove_dc.py index e6b1b7bdc04..4c63710881e 100644 --- a/python/samba/remove_dc.py +++ b/python/samba/remove_dc.py @@ -69,8 +69,8 @@ def remove_sysvol_references(samdb, logger, dc_name): # to add a base and add an arbitrary RDN. dn = ldb.Dn(samdb, s) if dn.add_base(samdb.get_default_basedn()) == False: - raise DemoteException("Failed constructing DN %s by adding base" % - (dn, samdb.get_default_basedn())) + raise DemoteException("Failed constructing DN %s by adding base %s" + % (dn, samdb.get_default_basedn())) if dn.add_child("CN=X") == False: raise DemoteException("Failed constructing DN %s by adding child " "CN=X (soon to be CN=%s)" % (dn, dc_name))