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 92f79a6 commit 94d5743Copy full SHA for 94d5743
plugins/module_utils/network/netconf/netconf.py
@@ -133,11 +133,11 @@ def sanitize_xml(data):
133
attribute.pop(key)
134
return to_text(tostring(tree), errors="surrogate_then_replace").strip()
135
136
+
137
def copy_config(module, source, target):
138
conn = get_connection(module)
139
try:
140
response = conn.copy_config(source=source, target=target)
141
except ConnectionError as e:
142
module.fail_json(msg=to_text(e, errors="surrogate_then_replace").strip())
143
return response
-
0 commit comments