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

Fix connection option handling for delegated driver #2988

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

apatard
Copy link
Contributor

@apatard apatard commented Nov 20, 2020

The documentation and the code tends to suggest that in order to configure the ansible connection plugin, the option to use is 'connection' but the test handling this option is testing 'ansible_connection', so fix that.

The documentation and the code tends to suggest that in order to
configure the ansible connection plugin, the option to use is
'connection' but the test handling this option is testing
'ansible_connection', so fix that.

Signed-off-by: Arnaud Patard <[email protected]>
@ssbarnea ssbarnea added the bug label Nov 22, 2020
@ssbarnea ssbarnea changed the title src/molecule/driver/delegated.py: Fix connection option handling Fix connection option handling for delegated driver Nov 22, 2020
Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

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

This is exactly the opposite, we should always follow Ansible and adapt to its changes, so we avoid confusing users. Based on https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html we need to assure we use ansible_connection and not just connection.

OK to update the docs, ok even if it breaks some users config, we will mark it as major and explain it that we follow ansible.

@apatard
Copy link
Contributor Author

apatard commented Nov 23, 2020

hm. not sure to follow. The change is only for the case of managed instances and here, the options are already not following ansible. See https://github.com/ansible-community/molecule/blob/master/src/molecule/driver/delegated.py#L185. If the idea is to get ansible variables by adding 'ansible_' as prefix, then my change is fine (and the identity option has possibly to be renamed). If not, then all options has to be renamed.
Am I missing something ?

@ssbarnea ssbarnea merged commit 11d09c8 into ansible:master Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants