diff options
Diffstat (limited to 'lib/ansible/module_utils/junos.py')
-rw-r--r-- | lib/ansible/module_utils/junos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/module_utils/junos.py b/lib/ansible/module_utils/junos.py index 31bfe8a5d1..c80dc8de38 100644 --- a/lib/ansible/module_utils/junos.py +++ b/lib/ansible/module_utils/junos.py @@ -112,7 +112,7 @@ def load_configuration(module, candidate=None, action='merge', rollback=None, fo if format == 'xml': cfg.append(fromstring(candidate)) else: - cfg.text = to_text(candidate, encoding='latin1') + cfg.text = to_text(candidate, encoding='latin-1') else: cfg.append(candidate) return send_request(module, obj) @@ -164,7 +164,7 @@ def get_diff(module): reply = get_configuration(module, compare=True, format='text') output = reply.find('.//configuration-output') if output is not None: - return to_text(output.text, encoding='latin1').strip() + return to_text(output.text, encoding='latin-1').strip() def load_config(module, candidate, warnings, action='merge', commit=False, format='xml', comment=None, confirm=False, confirm_timeout=None): |