summaryrefslogtreecommitdiff
path: root/cloudinit/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/helpers.py')
-rw-r--r--cloudinit/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/helpers.py b/cloudinit/helpers.py
index 24a3d5b5..e9fec628 100644
--- a/cloudinit/helpers.py
+++ b/cloudinit/helpers.py
@@ -375,7 +375,7 @@ class Paths(object):
def _get_ipath(self, name=None):
if not self.datasource:
return None
- iid = self.datasource.get_instance_id().lstrip(os.sep)
+ iid = self.datasource.get_instance_id().replace(os.sep, '_')
if iid is None:
return None
ipath = os.path.join(self.cloud_dir, 'instances', str(iid))