Skip to content

Commit

Permalink
Bugfix: Fix commit timeout type failure issue
Browse files Browse the repository at this point in the history
Signed-off-by: rohitthakur2590 <[email protected]>
  • Loading branch information
rohitthakur2590 committed Oct 3, 2024
1 parent ae17295 commit 50c69c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelogs/fragments/confirm_commit_error_fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- Confirmed commit results in Failure becuase of wrongly provided type
(https://github.com/ansible-collections/ansible.netcommon/issues/551)
3 changes: 2 additions & 1 deletion plugins/modules/netconf_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@
from ansible.module_utils._text import to_text
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.connection import Connection, ConnectionError
from ansible.module_utils._text import to_native, to_text

from ansible_collections.ansible.netcommon.plugins.module_utils.network.netconf.netconf import (
get_capabilities,
Expand Down Expand Up @@ -488,7 +489,7 @@ def main():
source = module.params["source_datastore"]
delete = module.params["delete"]
confirm_commit = module.params["confirm_commit"]
confirm = module.params["confirm"]
confirm = to_text(module.params["confirm"], error="surrogate_or_strict")
validate = module.params["validate"]
save = module.params["save"]
filter = module.params["get_filter"]
Expand Down

0 comments on commit 50c69c4

Please sign in to comment.