From dc32394c2f458b87aa7ba67e0f88ea8ebaf6b02f Mon Sep 17 00:00:00 2001 From: Kenny Gryp Date: Fri, 13 Nov 2015 10:26:09 +0100 Subject: [PATCH] some settings such as identityfile can have multiple values and are defined as lists, this caused it to always be 'changed', which is fixed with this small patch --- library/ssh_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssh_config.py b/library/ssh_config.py index 6a4d7e9..7ff3a3b 100755 --- a/library/ssh_config.py +++ b/library/ssh_config.py @@ -686,7 +686,7 @@ def change_host(options, **kwargs): if options.get(k): del options[k] changed = True - elif options.get(k) != v: + elif ( options.get(k) != v ) and not ( type(options.get(k)) is list and v in options.get(k) ): options[k] = v changed = True