We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320b21e commit 3346f53Copy full SHA for 3346f53
roles/terraform/templates/libvirt/vms.tf.j2
@@ -13,8 +13,8 @@ resource "libvirt_volume" "{{ disk.volume_id }}" {
13
{% if disk.source is defined %}
14
source = "{{ disk.source }}"
15
{% endif %}
16
-{% if volume.size is defined %}
17
- size = "{{ disk.size }}"
+{% if disk.size is defined %}
+ size = "{{ disk.size | human_to_bytes }}"
18
19
format = "{{ disk.format | default('raw') }}"
20
roles/terraform/templates/libvirt/volumes.tf.j2
@@ -11,7 +11,7 @@ resource "libvirt_volume" "{{ volume.volume_id }}" {
11
source = "{{ volume.source }}"
12
{% if volume.size is defined %}
- size = "{{ volume.size }}"
+ size = "{{ volume.size | human_to_bytes }}"
format = "{{ volume.format | default('raw') }}"
0 commit comments