Convert playbook basedir into unicode at the borders
(cherry picked from commit 0b96d61162
)
This commit is contained in:
parent
74bb122598
commit
a91788e25a
1 changed files with 3 additions and 2 deletions
|
@ -21,11 +21,12 @@ __metaclass__ = type
|
|||
|
||||
import os
|
||||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleParserError
|
||||
from ansible.module_utils._text import to_text
|
||||
from ansible.playbook.play import Play
|
||||
from ansible.playbook.playbook_include import PlaybookInclude
|
||||
from ansible.plugins import get_all_plugin_loaders
|
||||
from ansible import constants as C
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
|
@ -43,7 +44,7 @@ class Playbook:
|
|||
# Entries in the datastructure of a playbook may
|
||||
# be either a play or an include statement
|
||||
self._entries = []
|
||||
self._basedir = os.getcwd()
|
||||
self._basedir = to_text(os.getcwd(), errors='surrogate_or_strict')
|
||||
self._loader = loader
|
||||
self._file_name = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue