From 11d09c816766b568e49aab88cc901cee11ba9195 Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Wed, 25 Nov 2020 14:56:36 +0100 Subject: [PATCH] src/molecule/driver/delegated.py: Fix connection option handling (#2988) 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 --- src/molecule/driver/delegated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/molecule/driver/delegated.py b/src/molecule/driver/delegated.py index 4f7379a88d..42c3b4e8fb 100644 --- a/src/molecule/driver/delegated.py +++ b/src/molecule/driver/delegated.py @@ -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")