Better python, i.e., python that actually does what it should
authorPeter Palfrader <peter@palfrader.org>
Fri, 29 Sep 2017 08:47:40 +0000 (10:47 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 29 Sep 2017 08:47:40 +0000 (10:47 +0200)
modules/roles/files/static-mirroring/static-master-run

index e7e8b2d..aa61682 100755 (executable)
@@ -22,9 +22,9 @@ with open(conffile) as f:
     (name, value) = line.split("=")
     config[name] = value
 
-for key in ('base'):
+for key in ('base',):
   if not key in config:
-    raise Exception("Configuration element '%s' not found in config file %s", key, conffile)
+    raise Exception("Configuration element '%s' not found in config file %s"%(key, conffile))
 
 allclients = set()
 with open('/etc/static-clients.conf') as f: