provision: fix string format syntax
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 26 Oct 2018 07:49:38 +0000 (20:49 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:12 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
python/samba/provision/__init__.py

index 7a6d2f796535b6a8d3da69341f4e1f514323d01d..e376d0716e6c286667352f607d947c1b40045549 100644 (file)
@@ -614,7 +614,9 @@ def guess_names(lp=None, hostname=None, domain=None, dnsdomain=None,
     if dnsdomain is None:
         dnsdomain = lp.get("realm")
         if dnsdomain is None or dnsdomain == "":
-            raise ProvisioningError("guess_names: 'realm' not specified in supplied %s!", lp.configfile)
+            raise ProvisioningError(
+                "guess_names: 'realm' not specified in supplied %s!" %
+                lp.configfile)
 
     dnsdomain = dnsdomain.lower()