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
Module vmware_vcenter_settings bug and functionality #66713
Module vmware_vcenter_settings bug and functionality #66713
Comments
Files identified in the description: If these files are inaccurate, please update the |
@nicholasrodriguez, just so you are aware we have a dedicated Working Group for vmware. |
…ngs ansible#66713 add fragments file
…ngs ansible#66713 add fragments file small fix
…ngs ansible#66713 add fragments file small fix Refactoring the vmware_vcenter_settngs.py file for optimize
Hi @nicholasrodriguez refer: https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#adding-a-module-locally |
Thanks @sky-joker and @goneri
I get the following error
|
I've run with the module version in bdcaf4a using the following config
I get the following traceback
|
SUMMARY
This module still dosen't function correctly if runtime_settings isn't specified but has potential for misconfiguration in general.
For runtime_settings there is no default dict defined in argument_spec.update(...) in main() so if the runtime_settings key isn't defined then the module fails with the error in ACTUAL RESULTS section.
In the documentation these keys aren't specified as required.
In general the functionality of this module should be that only a subset or all of the available options should be configured if declared.
It appears that if you don't specify options then the defaults built into the module for each of the options are used and will overwrite anything currently configured on the target vCenter. This is potentially dangerous and could cause issues.
ISSUE TYPE
COMPONENT NAME
vmware_vcenter_settings
ANSIBLE VERSION
The latest devel version of vmware_vcenter_settings has been used
CONFIGURATION
OS / ENVIRONMENT
Ansible controller CentOS 7.5, RedHat 7.6
vSphere all 6.7
STEPS TO REPRODUCE
EXPECTED RESULTS
Only the options specified are configured
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: