summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-19 18:54:15 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-19 18:54:15 +0000
commita4edfa9ec71e901c53dc155d1ae910044a91cdf2 (patch)
treeeb2b8f622b39ce49d4316185728f51122b865fb0
parent1aff955b2e322e55dd09036764fb5a2542efdcc1 (diff)
downloadvyos-cloud-init-a4edfa9ec71e901c53dc155d1ae910044a91cdf2.tar.gz
vyos-cloud-init-a4edfa9ec71e901c53dc155d1ae910044a91cdf2.zip
improve log message on failure of initfs. run on both start-local and start
-rwxr-xr-xcloud-init.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/cloud-init.py b/cloud-init.py
index bda1ef8f..32add699 100755
--- a/cloud-init.py
+++ b/cloud-init.py
@@ -56,11 +56,10 @@ def main():
if cmd == "start-local":
source_type = "local"
- if cmd == "start-local":
- try:
- cloudinit.initfs()
- except:
- warn("failed to initfs, likely bad things to come")
+ try:
+ cloudinit.initfs()
+ except Exception, e:
+ warn("failed to initfs, likely bad things to come: %s" % str(e))
cloudinit.logging_set_from_cfg_file()