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:
parent
05e5474c52
commit
9e5d4de49a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue