diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-03-04 15:24:13 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-03-04 15:24:13 -0500 |
commit | 128f3a79a48ae34a9b94c8c6ae638b3ff2a30f28 (patch) | |
tree | 31cdaec400bdabda4decea15f7c920bc493df8ae /cloudinit | |
parent | 2fed8279f7a1de1b8f54466e4fde5937ba265ebc (diff) | |
download | vyos-cloud-init-128f3a79a48ae34a9b94c8c6ae638b3ff2a30f28.tar.gz vyos-cloud-init-128f3a79a48ae34a9b94c8c6ae638b3ff2a30f28.zip |
cloudinit/CloudConfig.py: bug fix, 'ephemeral' in cloud-config
would not be converted to 'ephemeral0'
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/CloudConfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
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("/"): |