fix(ansible): show cluster name in cluster_info playbook#44
Open
jainpiyush111 wants to merge 1 commit into
Open
fix(ansible): show cluster name in cluster_info playbook#44jainpiyush111 wants to merge 1 commit into
jainpiyush111 wants to merge 1 commit into
Conversation
…info 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>).
|
Test Report missing or unfilled. This PR touches This is a soft gate - your CI checks are unaffected - but reviewers will not approve until the report is filled in. |
hvinn
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ansible/cluster_info.ymlStep 1 was queryingcluster/nodesand usingthe first node's name as if it were the cluster name, producing output
like
Cluster node: <cluster>-vm-01. Theversionfield was alsomissing from
fields, so the version rendered asunknownonce thedisplay task was corrected.
This mirrors the same class of bug already fixed for the Python
example in #.
Change
Switch Step 1 to query the
clustersubset directly and request bothnameandversion:And update the display task to read from the corrected path:
Before
After
Testing
ansible-playbook --syntax-check ansible/cluster_info.yml -i ansible/inventory/hosts.ymlpasses.Checklist
ansible-playbook --syntax-checkpasses for the modified fileansible/cluster_info.yml