commit | c95c918346e759e807881f4dc387e0b743107b47 | [log] [tgz] |
---|---|---|
author | Vladimir Khlyunev <vkhlyunev@mirantis.com> | Mon Sep 13 12:22:26 2021 +0400 |
committer | Vladimir Khlyunev <vkhlyunev@mirantis.com> | Mon Sep 13 08:39:21 2021 +0000 |
tree | dbd7f328200ba84e8a0e5753c8f1696a0dd2656a | |
parent | 8a7640e0fc3b91aa2a6b772b7f1cf30188bdeedc [diff] |
Allow to skip cpu_mode for virt node PROD-36510 Change-Id: I395a99eb2794a5b14dda68d8ed528f0c2905f508
diff --git a/salt/control/virt.sls b/salt/control/virt.sls index 604bc3d..7751e6e 100644 --- a/salt/control/virt.sls +++ b/salt/control/virt.sls
@@ -90,7 +90,7 @@ {%- if node.cpuset is defined %} - cpuset: {{ node.cpuset }} {%- endif %} - {%- if node.cpu_mode is defined %} + {%- if node.get('cpu_mode') not in [None, '', 'qemu_default'] %} - cpu_mode: {{ node.cpu_mode }} {%- endif %} - kwargs: