From 7626eacc7a6eabad2c19a92d2cd235bc2922c62c Mon Sep 17 00:00:00 2001 From: Henry Finucane Date: Wed, 26 Mar 2014 17:34:04 -0700 Subject: [PATCH] Make ssh_config paramiko 1.12/1.13 compatible --- plugins/inventory/ssh_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/inventory/ssh_config.py b/plugins/inventory/ssh_config.py index 24017e62282..7c04c8cc6da 100755 --- a/plugins/inventory/ssh_config.py +++ b/plugins/inventory/ssh_config.py @@ -63,7 +63,8 @@ def get_config(): for d in cfg._config: _copy = dict(d) del _copy['host'] - ret_dict[d['host']] = _copy + for host in d['host']: + ret_dict[host] = _copy['config'] return ret_dict