summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2015-02-11 10:33:00 +0000
committerDaniel Watkins <daniel.watkins@canonical.com>2015-02-11 10:33:00 +0000
commitf38a2047731530dfa796056c6b1a07d2a9158e66 (patch)
treed9c3450b9768fcfebbc029e24b4dbbd835c4049e
parentcd632b2f153a61faa48531cb41d0288650e72c71 (diff)
downloadvyos-cloud-init-f38a2047731530dfa796056c6b1a07d2a9158e66.tar.gz
vyos-cloud-init-f38a2047731530dfa796056c6b1a07d2a9158e66.zip
Fix reference to non-existent variable.
-rw-r--r--cloudinit/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index b845adfd..d63b4bf2 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 due to: %s" %
- (device, tmpd, exc))
+ raise MountFailedError(
+ "Failed mounting %s to %s".format(device, tmpd))
# Be nice and ensure it ends with a slash
if not mountpoint.endswith("/"):