From 756be9a8defc4ecabdef2270b17dda74b02dcfc5 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sat, 19 May 2018 00:03:01 +0200 Subject: [PATCH] Allow to take down connections if not in config Allow to take down connections regardless of whether they are defined in the configuration. It should be enough that the connection is defined on the system. --- library/network_connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/network_connections.py b/library/network_connections.py index 0493f19..b77ad3f 100644 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -1120,7 +1120,7 @@ class ArgValidator_ListConnections(ArgValidatorList): def _validate_post(self, value, name, result): for idx, connection in enumerate(result): - if connection['state'] in ['down', 'up']: + if connection['state'] in ['up']: if connection['state'] == 'up' and 'type' in connection: pass elif not ArgUtil.connection_find_by_name(connection['name'], result, idx):