Skip to content

Commit

Permalink
src/molecule/driver/delegated.py: Fix connection option handling (#2988)
Browse files Browse the repository at this point in the history
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 <apatard@hupstream.com>
  • Loading branch information
apatard committed Nov 25, 2020
1 parent 5852f34 commit 11d09c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecule/driver/delegated.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def ansible_connection_options(self, instance_name):
conn_dict["ansible_user"] = d.get("user")
conn_dict["ansible_host"] = d.get("address")
conn_dict["ansible_port"] = d.get("port")
if d.get("ansible_connection", None):
if d.get("connection", None):
conn_dict["ansible_connection"] = d.get("connection", "smart")
if d.get("become_method", False):
conn_dict["ansible_become_method"] = d.get("become_method")
Expand Down

0 comments on commit 11d09c8

Please sign in to comment.