mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-04 01:28:53 +00:00
Fixes Netconf_config single parameter bug (#56138)
* Fixes Netconf_config single parameter bug Fixes 56022 fixed get_config to not require multiple parameters to just run a backup * Add Integration test for netconf_config Associated with #56022 tests backup through netconf only using one parameter. * Added debug to the begin and end of file * Fix formatting of save config. #56022 * removed blank line at end: #56022
This commit is contained in:
parent
9db3c8a40b
commit
647ed207af
4 changed files with 24 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ def locked_config(module, target=None):
|
|||
unlock_configuration(module, target=target)
|
||||
|
||||
|
||||
def get_config(module, source, filter, lock=False):
|
||||
def get_config(module, source, filter=None, lock=False):
|
||||
conn = get_connection(module)
|
||||
try:
|
||||
locked = False
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ def main():
|
|||
if not module.check_mode:
|
||||
conn.commit()
|
||||
result['changed'] = True
|
||||
else:
|
||||
elif config:
|
||||
if module.check_mode and not supports_commit:
|
||||
module.warn("check mode not supported as Netconf server doesn't support candidate capability")
|
||||
result['changed'] = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue