Ver código fonte

fix json_query expression

Grega Bremec 3 dias atrás
pai
commit
f0eb5faa30
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      playbooks/roles/deploy-operators/tasks/main.yml

+ 1 - 1
playbooks/roles/deploy-operators/tasks/main.yml

@@ -182,7 +182,7 @@
   block:
     - name: Set a fact for the target_csv
       ansible.builtin.set_fact:
-        target_csv: "{{ (sub_ip_pre | community.general.json_query('resources[?spec.approved==`true`]'))[0].spec.clusterServiceVersionNames[0] }}"
+        target_csv: "{{ (sub_ip_pre | community.general.json_query('[?spec.approved==`true`]'))[0].spec.clusterServiceVersionNames[0] }}"
 
     - name: Announce the CSV
       ansible.builtin.debug: