From 13b295f1eeb2789d83f158a9901aef8fb62ffcff Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 24 Mar 2016 09:21:49 -0700 Subject: [PATCH] Fix using non-ascii for inventory hostname patterns with the CLI. --- lib/ansible/cli/adhoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/cli/adhoc.py b/lib/ansible/cli/adhoc.py index 52ab761d523..c69bb42cc8c 100644 --- a/lib/ansible/cli/adhoc.py +++ b/lib/ansible/cli/adhoc.py @@ -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":