summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-11 13:58:23 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-11 13:58:23 -0500
commit587387cfbff7a89573128dc958df903d1becbde1 (patch)
tree5eca1629e714e3aa043898ba8d4c8b14cd491aff /cloudinit/util.py
parent9acda162465a9b580a79a0fdc2c8e003151c7ead (diff)
downloadvyos-cloud-init-587387cfbff7a89573128dc958df903d1becbde1.tar.gz
vyos-cloud-init-587387cfbff7a89573128dc958df903d1becbde1.zip
include exception in error again.
it is admittedly not clear, but 'exc' should be definied if mountpoint is not.
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r--cloudinit/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index fe606f23..67ea5553 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -1481,8 +1481,8 @@ def mount_cb(device, callback, data=None, rw=False, mtype=None, sync=True):
device, mtype, exc)
pass
if not mountpoint:
- raise MountFailedError(
- "Failed mounting %s to %s".format(device, tmpd))
+ raise MountFailedError("Failed mounting %s to %s due to: %s" %
+ (device, tmpd, exc))
# Be nice and ensure it ends with a slash
if not mountpoint.endswith("/"):