From 8884ae99aecd19d58bbda9c0610cc7bbbe11e6ef Mon Sep 17 00:00:00 2001 From: Piyush Jain Date: Thu, 21 May 2026 18:27:33 +0530 Subject: [PATCH] fix(python): request cluster name field in cluster_info The /cluster GET requested only fields=version, so ONTAP omitted name from the response and the script logged 'Cluster: unknown'. Include name alongside version so the cluster identity prints correctly. --- python/cluster_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cluster_info.py b/python/cluster_info.py index a93a215..6b29ec5 100644 --- a/python/cluster_info.py +++ b/python/cluster_info.py @@ -36,7 +36,7 @@ def main() -> None: with OntapClient.from_env() as client: # Step 1 — cluster version - cluster = client.get("/cluster", fields="version") + cluster = client.get("/cluster", fields="name,version") logger.info( "Cluster: %s — ONTAP %s", cluster.get("name", "unknown"),