Commit a75c19d
authored
fix(ansible): show cluster identity instead of first node in cluster_info (#44)
The Step 1 task used gather_subset: cluster/nodes and rendered
records[0].name, which is a node name (e.g. ...-vm-01), not the
cluster name. The version field was also omitted from fields, so
ONTAP returned no version data and the message showed 'unknown'.
Switch to gather_subset: cluster, request name and version, and
read from cluster_result.ontap_info.cluster. Output now matches
the Python example (Cluster: <name> - ONTAP <version>).1 parent 5f8f7f7 commit a75c19d
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments