summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/CloudConfig.py4
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("/"):