-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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_group_modules from ansible.cfg gets loaded incorrectly #26154
Comments
@jmighion would you mind re-testing this in the devel branch? We believe it's fixed. |
needs_info |
I'll retest today hopefully. Sorry for the delay. |
Still persists on this morning's devel. I tried from a mac and from rhel. I added the same logging to both hosts' ansible/executor/task_executor.py :
Both hosts used the example ansible.cfg from the devel branch with only the following added :
From the mac :
A run without using the network_group_modules option in ansible.cfg :
A run with the network_group_modules option in ansible.cfg added by just removing the comment :
From the rhel host :
The extra logging output was exactly the same. The
Notice the difference in how the |
Possible MisunderstandingHi! Thanks very much for your submission to Ansible. It sincerely means a lot to us. We believe the ticket you have filed is being somewhat misunderstood, as one thing works a little differently than stated. The configuration is not loaded incorrectly, you are just mixing python/yaml with ini formats. network_group_modules=eos, nxos, ios, iosxr, junos, vyos In the future, this might be a topic more well suited for the user list, which you can also post here if you'd like some more help with the above. Thank you once again for this and your interest in Ansible! |
Should this ticket be opened against ansible.cfg? |
…railing whitespaces from comments for style consistency. Fixes ansible#26154
…railing whitespaces from comments for style consistency. Fixes ansible#26154 (ansible#32460)
ISSUE TYPE
COMPONENT NAME
constants.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A
SUMMARY
If you use the network_group_modules option in ansible.cfg, it gets loaded incorrectly in constants.py. Even using the default that's provided in ansible.cfg, just using it will cause TaskExecutor._get_action_handler to load the wrong action plugin. I've been able to reproduce this on 2.3.0, 2.3.1, and devel 2.4.0 (3d6d428).
STEPS TO REPRODUCE
Remove the comment before the network_group_modules line in ansible.cfg :
network_group_modules=['eos', 'nxos', 'ios', 'iosxr', 'junos', 'vyos']
EXPECTED RESULTS
Gather ios_facts
Added logging to show what C.NETWORK_GROUP_MODULES was :
ACTUAL RESULTS
Added logging to show what C.NETWORK_GROUP_MODULES was :
The text was updated successfully, but these errors were encountered: