Fix using non-ascii for inventory hostname patterns with the CLI.

This commit is contained in:
Toshio Kuratomi 2016-03-24 09:21:49 -07:00
parent 4d42f1992b
commit 13b295f1ee

View file

@ -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":