Skip to content

Commit

Permalink
Fix "None" as a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim committed Sep 28, 2023
1 parent 7c082dd commit 0cb28d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/roles/infra-aws-sandbox/tasks/pool.yml
Original file line number Diff line number Diff line change
@@ -64,13 +64,13 @@
set_fact:
sandbox_reservation: "{{ r_get_reservation.stdout }}"

- when: sandbox_reservation | default("") != ""
- when: sandbox_reservation | default("", true) != ""
set_fact:
additional_data:
reservation:
S: "{{ sandbox_reservation }}"

- when: sandbox_reservation | default("") == ""
- when: sandbox_reservation | default("", true) == ""
set_fact:
additional_data: {}

0 comments on commit 0cb28d6

Please sign in to comment.