We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa1e19 commit bfff614Copy full SHA for bfff614
plugins/modules/netconf_config.py
@@ -689,7 +689,7 @@ def main():
689
"after": sanitized_after,
690
}
691
elif not config and commit:
692
- if not module.check_mode:
+ if not module.check_mode:
693
confirm_timeout = confirm if confirm > 0 else None
694
commit_rpc = f"""
695
<commit xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
@@ -698,8 +698,8 @@ def main():
698
</commit>
699
"""
700
response = conn.dispatch(commit_rpc.strip())
701
- else:
702
- conn.discard_changes()
+ else:
+ conn.discard_changes()
703
704
except ConnectionError as e:
705
module.fail_json(msg=to_text(e, errors="surrogate_then_replace").strip())
0 commit comments