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

Replaced the ndo modules current value with actual API response value (DCNE-185) #589

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sajagana
Copy link
Collaborator

Note:

Fixed the below NDO modules:

  • ndo_synce_interface_policy
  • ndo_vlan_pool
  • ndo_dhcp_option_policy
  • ndo_dhcp_relay_policy
  • ndo_l3_domain
  • ndo_physical_domain
  • ndo_route_map_policy_multicast

… response value and fixed the output value of the ndo_route_map_policy_multicast and ndo_vlan_pool modules
@sajagana sajagana force-pushed the 538_ndo_modules_current_value_fix branch from 8c27fc9 to 39d30ea Compare December 19, 2024 08:31
@github-actions github-actions bot changed the title Replaced the ndo modules current value with actual API response value Replaced the ndo modules current value with actual API response value (DCNE-185) Dec 19, 2024
@@ -788,7 +788,7 @@ def query_objs(self, path, key=None, api_version="v1", **kwargs):
found = []
objs = self.request(path, api_version=api_version, method="GET")

if objs == {} or objs == []:
if objs == {} or objs == [] or not objs:
Copy link
Collaborator

Choose a reason for hiding this comment

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

is [] or {} not the same as not?

Suggested change
if objs == {} or objs == [] or not objs:
if not objs:

plugins/modules/ndo_dhcp_option_policy.py Show resolved Hide resolved
plugins/modules/ndo_dhcp_option_policy.py Show resolved Hide resolved
tests/integration/targets/ndo_l3_domain/tasks/main.yml Outdated Show resolved Hide resolved
@sajagana sajagana force-pushed the 538_ndo_modules_current_value_fix branch from 2240b6b to 5943cf6 Compare December 20, 2024 17:30
@sajagana sajagana requested a review from akinross December 20, 2024 17:33
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.

Update the existing NDO modules to return the actual current value based on the API response (DCNE-185)
2 participants