Skip to content

Commit

Permalink
fix: cacher jinja fails to split words
Browse files Browse the repository at this point in the history
Fixes: #35
  • Loading branch information
ben-grande committed Mar 21, 2024
1 parent 7faf944 commit 4ac0ec9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions salt/sys-cacher/untag.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]
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":
qvm.tags:
- name: {{ tpl }}
- del:
- updatevm-sys-cacher
{% endfor -%}
{% endif -%}

0 comments on commit 4ac0ec9

Please sign in to comment.