From: Peter Palfrader Date: Fri, 29 Sep 2017 08:47:40 +0000 (+0200) Subject: Better python, i.e., python that actually does what it should X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=37e9f0004961e8d3eb005cb4ec8e1074b7e05498;p=mirror%2Fdsa-puppet.git Better python, i.e., python that actually does what it should --- diff --git a/modules/roles/files/static-mirroring/static-master-run b/modules/roles/files/static-mirroring/static-master-run index e7e8b2d92..aa616826d 100755 --- a/modules/roles/files/static-mirroring/static-master-run +++ b/modules/roles/files/static-mirroring/static-master-run @@ -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: