Skip to content

Commit bfff614

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1aa1e19 commit bfff614

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/modules/netconf_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def main():
689689
"after": sanitized_after,
690690
}
691691
elif not config and commit:
692-
if not module.check_mode:
692+
if not module.check_mode:
693693
confirm_timeout = confirm if confirm > 0 else None
694694
commit_rpc = f"""
695695
<commit xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
@@ -698,8 +698,8 @@ def main():
698698
</commit>
699699
"""
700700
response = conn.dispatch(commit_rpc.strip())
701-
else:
702-
conn.discard_changes()
701+
else:
702+
conn.discard_changes()
703703

704704
except ConnectionError as e:
705705
module.fail_json(msg=to_text(e, errors="surrogate_then_replace").strip())

0 commit comments

Comments
 (0)