Explorar el Código

fix json_query expression

Grega Bremec hace 2 días
padre
commit
f0eb5faa30
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: