Pass exception into string formatting

Fixing a small typo in a error message

Change-Id: Ia3fcab0f470166108cc24589f0040e14727710df
This commit is contained in:
Derek Higgins 2013-07-03 15:14:50 +01:00
parent 086ad61824
commit b599c280e7
1 changed files with 1 additions and 1 deletions

View File

@ -35,5 +35,5 @@ with open('/run/os-refresh-config-cfn-hup.lock', 'a') as lock:
try:
subprocess.check_call(['cfn-hup', '--no-daemon'])
except subprocess.CalledProcessError as e:
sys.stderr.write("%s\n", e)
sys.stderr.write("%s\n" % e)
sys.exit(e.returncode)