diff options
Diffstat (limited to 'cloudinit/helpers.py')
-rw-r--r-- | cloudinit/helpers.py | 2 |
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)) |