diff --git a/lib/ansible/cli/adhoc.py b/lib/ansible/cli/adhoc.py index c69bb42cc8..d7fc5d7fad 100644 --- a/lib/ansible/cli/adhoc.py +++ b/lib/ansible/cli/adhoc.py @@ -96,7 +96,7 @@ class AdHocCLI(CLI): super(AdHocCLI, self).run() # only thing left should be host pattern - pattern = to_unicode(self.args[0]) + pattern = to_unicode(self.args[0], errors='strict') # ignore connection password cause we are local if self.options.connection == "local":