mirror of
https://github.com/ben-grande/qusal.git
synced 2025-01-11 15:39:40 -05:00
fix: cacher jinja fails to split words
Fixes: https://github.com/ben-grande/qusal/issues/35
This commit is contained in:
parent
7faf944964
commit
4ac0ec9613
@ -4,12 +4,14 @@ SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.co
|
|||||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{% set wanted = salt['cmd.shell']('qvm-ls --no-spinner --raw-list') -%}
|
{% set wanted = salt['cmd.shell']('qvm-ls --no-spinner --raw-list --tags updatevm-sys-cacher') -%}
|
||||||
|
|
||||||
{% for tpl in wanted.replace(",", " ") -%}
|
{% if wanted -%}
|
||||||
|
{% for tpl in wanted.split("\n") %}
|
||||||
"{{ tpl }}-cacher-untag":
|
"{{ tpl }}-cacher-untag":
|
||||||
qvm.tags:
|
qvm.tags:
|
||||||
- name: {{ tpl }}
|
- name: {{ tpl }}
|
||||||
- del:
|
- del:
|
||||||
- updatevm-sys-cacher
|
- updatevm-sys-cacher
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
{% endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user