From 446a197639a28b6363b63366a72a4d859ac5c7d7 Mon Sep 17 00:00:00 2001 From: Rugvedi Kapse Date: Tue, 17 Dec 2024 07:32:04 -0800 Subject: [PATCH] fixed galaxy publishing error --- .../sda_host_port_onboarding_workflow_manager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/modules/sda_host_port_onboarding_workflow_manager.py b/plugins/modules/sda_host_port_onboarding_workflow_manager.py index d811d0f68..36a2aa9fb 100644 --- a/plugins/modules/sda_host_port_onboarding_workflow_manager.py +++ b/plugins/modules/sda_host_port_onboarding_workflow_manager.py @@ -3661,21 +3661,21 @@ def get_have(self, config, state): port_channel_details = config.get("port_channels") wireless_ssids_details = config.get("wireless_ssids") fabric_site_name_hierarchy = config.get("fabric_site_name_hierarchy") - ip_address = config.get("ip_address") + ip_address = [config.get("ip_address")] hostname = config.get("hostname") fabric_id = self.get_fabric_id(fabric_site_name_hierarchy) have = {"fabric_id": fabric_id, "fabric_site_name_hierarchy": fabric_site_name_hierarchy} def update_network_details(): - nonlocal ip_address - mgmt_ip_to_instance_id_map = self.get_network_device_id(ip_address, hostname) + # nonlocal ip_address + mgmt_ip_to_instance_id_map = self.get_network_device_id(ip_address[0], hostname) network_device_id = list(mgmt_ip_to_instance_id_map.values())[0] - ip_address = list(mgmt_ip_to_instance_id_map.keys())[0] - self.validate_device_in_fabric(ip_address) + ip_address[0] = list(mgmt_ip_to_instance_id_map.keys())[0] + self.validate_device_in_fabric(ip_address[0]) have.update({ "mgmt_ip_to_instance_id_map": mgmt_ip_to_instance_id_map, - "ip_address": ip_address, + "ip_address": ip_address[0], "network_device_id": network_device_id, "get_port_assignments_params": self.get_port_assignments_params(network_device_id, fabric_id), "get_port_channels_params": self.get_port_channels_params(network_device_id, fabric_id)