From 699be4d9b5febf2fcd86e7171d8d71569b76aca0 Mon Sep 17 00:00:00 2001 From: ranp Date: Thu, 23 Jan 2025 14:54:55 +0800 Subject: [PATCH] Change to use product_version as nsx version Use product_version instead of node_version properties to get nsx version from node. Change-Id: I01710f6d26cd8442c8aca60c459ef15444bc5fce --- vmware_nsxlib/v3/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vmware_nsxlib/v3/__init__.py b/vmware_nsxlib/v3/__init__.py index b47fad4e..9534d1dc 100644 --- a/vmware_nsxlib/v3/__init__.py +++ b/vmware_nsxlib/v3/__init__.py @@ -140,7 +140,9 @@ class NsxLib(lib.NsxLibBase): return self.nsx_version node = self.client.get("node") - self.nsx_version = node.get('node_version') + self.nsx_version = node.get('product_version') + LOG.info("Reading nsx version by production_version on node %s", + self.nsx_version) return self.nsx_version def export_restricted(self):