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.
This commit is contained in:
ikelos 2016-12-12 20:57:29 +00:00 committed by Peter Sprygada
parent 05e5474c52
commit 9e5d4de49a

View file

@ -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