← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~daniel-thewatkins/cloud-init/fix_mount_cb_symlink into lp:cloud-init

 

Dan Watkins has proposed merging lp:~daniel-thewatkins/cloud-init/fix_mount_cb_symlink into lp:cloud-init.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~daniel-thewatkins/cloud-init/fix_mount_cb_symlink/+merge/269789
-- 
Your team cloud init development team is requested to review the proposed merge of lp:~daniel-thewatkins/cloud-init/fix_mount_cb_symlink into lp:cloud-init.
=== modified file 'cloudinit/util.py'
--- cloudinit/util.py	2015-08-06 23:34:57 +0000
+++ cloudinit/util.py	2015-09-01 17:27:57 +0000
@@ -1480,8 +1480,8 @@
     mounted = mounts()
     with tempdir() as tmpd:
         umount = False
-        if device in mounted:
-            mountpoint = mounted[device]['mountpoint']
+        if os.path.realpath(device) in mounted:
+            mountpoint = mounted[os.path.realpath(device)]['mountpoint']
         else:
             failure_reason = None
             for mtype in mtypes:


Follow ups