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

vmware_dvs_portgroup: Fix idempotency #1286

Conversation

mariolenz
Copy link
Collaborator

@mariolenz mariolenz commented Apr 10, 2022

SUMMARY

The parameter num_ports in vmware_dvs_portgroup is not required, but always used to test if a change is needed. This code will always trigger a change since None is different from the current number of ports, which is an integer:

# Check config
if self.dvs_portgroup.config.numPorts != self.module.params['num_ports']:
return 'update'

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

vmware_dvs_portgroup

ADDITIONAL INFORMATION

@mariolenz mariolenz closed this Apr 10, 2022
@mariolenz mariolenz reopened this Apr 10, 2022
@mariolenz
Copy link
Collaborator Author

recheck

@mariolenz
Copy link
Collaborator Author

recheck

@mariolenz mariolenz changed the title [WIP] vmware_dvs_portgroup: Fix idempotency vmware_dvs_portgroup: Fix idempotency Apr 11, 2022
@mariolenz mariolenz added bug This issue/PR relates to a bug mergeit labels Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug mergeit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant