diff --git a/lib/ansible/modules/system/interfaces_file.py b/lib/ansible/modules/system/interfaces_file.py index af121c6daca..8cea05b8de4 100755 --- a/lib/ansible/modules/system/interfaces_file.py +++ b/lib/ansible/modules/system/interfaces_file.py @@ -150,7 +150,7 @@ import re import tempfile from ansible.module_utils.basic import AnsibleModule - +from ansible.module_utils._text import to_bytes def lineDict(line): return {'line': line, 'line_type': 'unknown'}