Fix using non-ascii for inventory hostname patterns with the CLI.
This commit is contained in:
parent
4d42f1992b
commit
13b295f1ee
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ from ansible.parsing.splitter import parse_kv
|
|||
from ansible.playbook.play import Play
|
||||
from ansible.plugins import get_all_plugin_loaders
|
||||
from ansible.utils.vars import load_extra_vars
|
||||
from ansible.utils.unicode import to_unicode
|
||||
from ansible.vars import VariableManager
|
||||
|
||||
try:
|
||||
|
@ -95,7 +96,7 @@ class AdHocCLI(CLI):
|
|||
super(AdHocCLI, self).run()
|
||||
|
||||
# only thing left should be host pattern
|
||||
pattern = self.args[0]
|
||||
pattern = to_unicode(self.args[0])
|
||||
|
||||
# ignore connection password cause we are local
|
||||
if self.options.connection == "local":
|
||||
|
|
Loading…
Reference in a new issue