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

network_setting index out of range bug fixed #100

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions plugins/modules/network_settings_workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,6 +1970,11 @@ def reserve_pool_exists(self, name, site_name):
reserve_pool_details = get_dict_result(
self.all_reserved_pool_details.get(site_id), "groupName", name)

if not reserve_pool_details:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a debug message before returning..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Logs added

self.log("Reserved pool {0} does not exist in the site {1}"
.format(name, site_name), "DEBUG")
return reserve_pool

if reserve_pool_details and isinstance(reserve_pool_details, dict):
self.log("Reserve pool found with name {0} in the site '{1}': {2}"
.format(name, site_name, reserve_pool_details), "INFO")
Expand Down
Loading