Commit 13e976cf authored by Julien Muchembled's avatar Julien Muchembled

vm.install-debian: escape commas when passing image path to qemu

parent e6b9fc64
...@@ -108,7 +108,8 @@ class BaseRecipe(EnvironMixin): ...@@ -108,7 +108,8 @@ class BaseRecipe(EnvironMixin):
def getQemuBasicArgs(self, dist, mem=None, snapshot=False, def getQemuBasicArgs(self, dist, mem=None, snapshot=False,
unsafe=False, ssh=None): unsafe=False, ssh=None):
drive = 'file=%s/%s.img,format=raw,discard=on' % (self.vm, dist) drive = 'file=%s.img,format=raw,discard=on' \
% join(self.vm, dist).replace(',', ',,')
if snapshot: if snapshot:
drive += ',snapshot=on' drive += ',snapshot=on'
elif unsafe: elif unsafe:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment