Pass exception into string formatting
Fixing a small typo in a error message Change-Id: Ia3fcab0f470166108cc24589f0040e14727710df
This commit is contained in:
parent
086ad61824
commit
b599c280e7
@ -35,5 +35,5 @@ with open('/run/os-refresh-config-cfn-hup.lock', 'a') as lock:
|
|||||||
try:
|
try:
|
||||||
subprocess.check_call(['cfn-hup', '--no-daemon'])
|
subprocess.check_call(['cfn-hup', '--no-daemon'])
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
sys.stderr.write("%s\n", e)
|
sys.stderr.write("%s\n" % e)
|
||||||
sys.exit(e.returncode)
|
sys.exit(e.returncode)
|
||||||
|
Loading…
Reference in New Issue
Block a user