Skip to content

Commit

Permalink
[PR #9788/bb2c45b5 backport][stable-10] json_query filter docs: fix t…
Browse files Browse the repository at this point in the history
…ypo cluster2 when cluster1 is mentioned (#9793)

json_query filter docs: fix typo cluster2 when cluster1 is mentioned (#9788)

Typo cluster2 but cluster1 is mentioned

(cherry picked from commit bb2c45b)

Co-authored-by: Kloppi313 <[email protected]>
  • Loading branch information
patchback[bot] and Kloppi313 authored Feb 21, 2025
1 parent 72ea96c commit 469209a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docsite/rst/filter_guide_selecting_json_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ To get a hash map with all ports and names of a cluster:
var: item
loop: "{{ domain_definition | community.general.json_query(server_name_cluster1_query) }}"
vars:
server_name_cluster1_query: "domain.server[?cluster=='cluster2'].{name: name, port: port}"
server_name_cluster1_query: "domain.server[?cluster=='cluster1'].{name: name, port: port}"

To extract ports from all clusters with name starting with 'server1':

Expand Down

0 comments on commit 469209a

Please sign in to comment.