Merge lp:~darkmuggle-deactivatedaccount/cloud-init/lp1236594-bad_ephemeral0_mnt into lp:~cloud-init-dev/cloud-init/trunk

Proposed by Ben Howard
Status: Merged
Merged at revision: 887
Proposed branch: lp:~darkmuggle-deactivatedaccount/cloud-init/lp1236594-bad_ephemeral0_mnt
Merge into: lp:~cloud-init-dev/cloud-init/trunk
Diff against target: 22 lines (+1/-4)
1 file modified
cloudinit/config/cc_mounts.py (+1/-4)
To merge this branch: bzr merge lp:~darkmuggle-deactivatedaccount/cloud-init/lp1236594-bad_ephemeral0_mnt
Reviewer Review Type Date Requested Status
Scott Moser Pending
Review via email: mp+189707@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cloudinit/config/cc_mounts.py'
2--- cloudinit/config/cc_mounts.py 2013-10-04 22:29:12 +0000
3+++ cloudinit/config/cc_mounts.py 2013-10-07 21:16:17 +0000
4@@ -222,9 +222,6 @@
5 if not os.path.exists(device):
6 return None
7
8- if not partition:
9- return device
10-
11 short_name = os.path.basename(device)
12 sys_path = "/sys/block/%s" % short_name
13
14@@ -239,7 +236,7 @@
15
16 if partition is None:
17 valid_mappings = [sys_long_path + "1",
18- sys_long_path + "p1" % partition]
19+ sys_long_path + "p1"]
20 elif partition != "0":
21 valid_mappings = [sys_long_path + "%s" % partition,
22 sys_long_path + "p%s" % partition]