From 7fc727e14ee75c0fb7e6f896b56675161ca0ebb6 Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Fri, 20 Nov 2020 20:52:07 +0100 Subject: [PATCH] src/molecule/driver/delegated.py: Fix connection option handling 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 f76f1cab8d..74240e2fb8 100644 --- a/src/molecule/driver/delegated.py +++ b/src/molecule/driver/delegated.py @@ -185,7 +185,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")