From 7c675705f32ae8fcd26942bfc7e9b2c26b63dba5 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 --- system/known_hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/known_hosts.py b/system/known_hosts.py index 30ea7755553..86876cd4931 100644 --- a/system/known_hosts.py +++ b/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