From 128f3a79a48ae34a9b94c8c6ae638b3ff2a30f28 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 4 Mar 2010 15:24:13 -0500 Subject: cloudinit/CloudConfig.py: bug fix, 'ephemeral' in cloud-config would not be converted to 'ephemeral0' --- cloudinit/CloudConfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/CloudConfig.py b/cloudinit/CloudConfig.py index 35e96229..73cf4e3a 100644 --- a/cloudinit/CloudConfig.py +++ b/cloudinit/CloudConfig.py @@ -276,8 +276,8 @@ class CloudConfig(): # workaround, allow user to specify 'ephemeral' # rather than more ec2 correct 'ephemeral0' - if cfgmnt[i] == "ephemeral": - cfgmnt[i] = "ephemeral0" + if cfgmnt[i][0] == "ephemeral": + cfgmnt[i][0] = "ephemeral0" newname = cfgmnt[i][0] if not newname.startswith("/"): -- cgit v1.2.3