summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-31 11:20:36 -0400
committerScott Moser <smoser@ubuntu.com>2015-07-31 11:20:36 -0400
commit0d85766423073c7af17750e9faaafdd33c63ae08 (patch)
treee3b1020d6720d1be4493db9bc12377d76bbd420e
parentf2f766015a0e875605a24703c5f0e18751650fe8 (diff)
downloadvyos-cloud-init-0d85766423073c7af17750e9faaafdd33c63ae08.tar.gz
vyos-cloud-init-0d85766423073c7af17750e9faaafdd33c63ae08.zip
status_wrapper in main: correct fix use of print_exc when handling exception
-rwxr-xr-xbin/cloud-init2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index d50ac694..63c13b09 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -506,7 +506,7 @@ def status_wrapper(name, args, data_d=None, link_d=None):
except Exception as e:
util.logexc(LOG, "failed of stage %s", mode)
- print_exc("failed run of stage %s" mode)
+ print_exc("failed run of stage %s" % mode)
v1[mode]['errors'] = [str(e)]
v1[mode]['finished'] = time.time()