Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 Bug Fix - Network Compliance Module #273

Merged
merged 2 commits into from
Jun 5, 2024
Merged

Conversation

rukapse
Copy link
Collaborator

@rukapse rukapse commented Jun 4, 2024

PR Summary:

  • Code changes have been made to plugins/modules/network_compliance_workflow_manager.py file only.

  • Includes 1 Bug Fix:

    1. Compliance error msg when there are no devices in given sites not clear
  • Tested on Catalyst Centre v2.3.7.0.

@@ -607,6 +607,10 @@ def get_device_ids_from_ip(self, ip_address_list):
except Exception as e:
# Log an error message if any exception occurs during the process
self.log("Error while fetching device ID for device: '{0}' from Cisco Catalyst Center: {1}".format(device_ip, str(e)), "ERROR")
if not mgmt_ip_instance_id_map:
self.msg = "Reachable devices not found in the IP Address List: {0}".format(ip_address_list)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we split the ip addresses using .join ? Can you check in our code?

    formatted_ip_list = ', '.join(ip_address_list)
    self.msg = "No reachable devices found among the provided IP addresses: [{}]".format(formatted_ip_list)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will address this in the next PR.

@madhansansel madhansansel merged commit ac37a2a into madhansansel:main Jun 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants