Skip to content

Commit

Permalink
fixed galaxy publishing error for SDA Host Port Onboarding Module (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
madhansansel authored Dec 17, 2024
2 parents 8573416 + 311bb7e commit 9d799cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/modules/sda_host_port_onboarding_workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d799cc

Please sign in to comment.