diff --git a/lib/ansible/config/manager.py b/lib/ansible/config/manager.py index 49972adb68a..db9e08b57f0 100644 --- a/lib/ansible/config/manager.py +++ b/lib/ansible/config/manager.py @@ -116,7 +116,7 @@ def get_config_type(cfile): ftype = None if cfile is not None: - ext = os.path.splitext(cfile)[-1] + ext = to_text(os.path.splitext(cfile)[-1]) if ext in ('.ini', '.cfg'): ftype = 'ini' elif ext in ('.yaml', '.yml'):