From 0eaee21d81868ef0768c8d1efa2698a552336a46 Mon Sep 17 00:00:00 2001 From: Sterling Windmill Date: Mon, 4 May 2015 15:57:40 -0400 Subject: [PATCH] Allow for specifying name instead of host as per the documentation at http://docs.ansible.com/known_hosts_module.html --- lib/ansible/modules/extras/system/known_hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/known_hosts.py b/lib/ansible/modules/extras/system/known_hosts.py index 30ea7755553..86876cd4931 100644 --- a/lib/ansible/modules/extras/system/known_hosts.py +++ b/lib/ansible/modules/extras/system/known_hosts.py @@ -82,7 +82,7 @@ def enforce_state(module, params): Add or remove key. """ - host = params["host"] + host = params["name"] key = params.get("key",None) port = params.get("port",None) #expand the path parameter; otherwise module.add_path_info