summaryrefslogtreecommitdiff
path: root/roles/vm-install/templates/libvirt-domain.xml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vm-install/templates/libvirt-domain.xml.j2')
-rw-r--r--roles/vm-install/templates/libvirt-domain.xml.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vm-install/templates/libvirt-domain.xml.j2 b/roles/vm-install/templates/libvirt-domain.xml.j2
index 8fd3b6d7..5546fd44 100644
--- a/roles/vm-install/templates/libvirt-domain.xml.j2
+++ b/roles/vm-install/templates/libvirt-domain.xml.j2
@@ -33,7 +33,7 @@
{% for device, lv in vm_install.disks.virtio.items() %}
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
- <source dev='/dev/mapper/{{ lv.vg }}-{{ lv.lv }}'/>
+ <source dev='/dev/mapper/{{ lv.vg }}-{{ lv.lv | replace('-', '--') }}'/>
<target dev='{{ device }}' bus='virtio'/>
</disk>
{% endfor %}
@@ -44,7 +44,7 @@
{% for device, lv in vm_install.disks.scsi.items() %}
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
- <source dev='/dev/mapper/{{ lv.vg }}-{{ lv.lv }}'/>
+ <source dev='/dev/mapper/{{ lv.vg }}-{{ lv.lv | replace('-', '--') }}'/>
<target dev='{{ device }}' bus='scsi'/>
</disk>
{% endfor %}