From 9e5d4de49aa947585a9ee8987cb0da90680c034a Mon Sep 17 00:00:00 2001 From: ikelos Date: Mon, 12 Dec 2016 20:57:29 +0000 Subject: [PATCH] Fix overwrite parameter in module_utils.junos (#18671) The overwrite parameter is forcibly set to false, meaning a module passing that parameter will have no effect. The overwrite facility is necessary to ensure that conflicting options can be written the configuration (which, in replace mode, they cannot). This change ensures that if overwrite is set, it will not be changed to False in the logic. --- lib/ansible/module_utils/junos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index 3d24b860376..dbdae283f1e 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -184,8 +184,8 @@ class Netconf(object): merge = False overwrite = False elif overwrite: - merge = True - overwrite = False + merge = False + overwrite = True else: merge = True overwrite = False