Skip to content

Commit 6a630c4

Browse files
committed
Fix bug in clock offset fallback
included {{ }} inside a default() resulting in an ansible error
1 parent 75dfae8 commit 6a630c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/vm.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<name>{{ vm.name }}</name>
33
<memory>{{ vm.memory_mb | int * 1024 }}</memory>
44
<vcpu>{{ vm.vcpus }}</vcpu>
5-
{% if vm.clock_offset |default({{ libvirt_vm_clock_offset }}) %}
5+
{% if vm.clock_offset |default( libvirt_vm_clock_offset ) %}
66
<clock offset="{{ vm.clock_offset }}"/>
77
{% else %}
88
<clock sync="localtime"/>

0 commit comments

Comments
 (0)