Skip to content

Commit

Permalink
fix: Cannot remove volumes from kube yaml - need to convert yaml to list
Browse files Browse the repository at this point in the history
Cause: __podman_quadlet_parsed was not converted to a list.

Consequence: On older versions of Ansible, the volumes from the kube yaml
were not removed when removing quadlets.

Fix: Convert __podman_quadlet_parsed to a list after parsing.

Result: Older versions of Ansible can remove volumes specified
in kube yaml files.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Sep 9, 2024
1 parent 5a9a8b4 commit 423c983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/parse_quadlet_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
- name: Parse quadlet yaml file
set_fact:
__podman_quadlet_parsed: "{{ __podman_quadlet_raw.content | b64decode |
from_yaml_all }}"
from_yaml_all | list }}"
when:
- __podman_service_name | length == 0
- __podman_quadlet_file.endswith(".yml") or
Expand Down

0 comments on commit 423c983

Please sign in to comment.