summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-26 14:02:37 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-26 14:02:37 -0500
commit0ebca9c158c87b28fb61974e9e36e645cf60494c (patch)
treeccfb5427c3b5f247aa3931d29b8f3a03fa1dcf4f /bin
parentd136a3cf9aa409a0275cc884227971c1cd21720d (diff)
downloadvyos-cloud-init-0ebca9c158c87b28fb61974e9e36e645cf60494c.tar.gz
vyos-cloud-init-0ebca9c158c87b28fb61974e9e36e645cf60494c.zip
status_wrapper: do not swallow errors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cloud-init2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index 6c83c2e7..50bd929e 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -505,6 +505,8 @@ def status_wrapper(name, args, data_d=None, link_d=None):
v1[mode]['errors'] = [str(e) for e in errors]
except Exception as e:
+ util.logexc(LOG, "failed of stage %s", mode)
+ print_exc("failed run of stage %s", mode)
v1[mode]['errors'] = [str(e)]
v1[mode]['finished'] = time.time()