diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-01-25 10:44:50 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-01-25 10:44:50 +0100 |
commit | f9d95ad3434738ce7b372c7dad70dba136c0da17 (patch) | |
tree | 66155f5b23492078e5a7c46924b675b0263e2908 /roles/vm-install/templates/libvirt-domain.xml.j2 | |
parent | some clenaup and minor improvments (diff) | |
parent | rename k8s-stream group to k8s-emc (diff) |
merged
Diffstat (limited to 'roles/vm-install/templates/libvirt-domain.xml.j2')
-rw-r--r-- | roles/vm-install/templates/libvirt-domain.xml.j2 | 4 |
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..c84b1045 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 | replace('-', '--') }}-{{ 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 | replace('-', '--') }}-{{ lv.lv | replace('-', '--') }}'/> <target dev='{{ device }}' bus='scsi'/> </disk> {% endfor %} |