summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2016-03-24 09:25:37 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2016-03-24 09:26:18 -0700
commite17ba96589c6f1d72102518dd8d14320b6016d15 (patch)
treea4a9d7d4997980b17b5e97218b5d90cf6946ff5b
parent2d0badc5ef9f5dc3a07428687d83819ea5de594f (diff)
downloadansible-e17ba96589c6f1d72102518dd8d14320b6016d15.tar.gz
Should be errors=strict since we don't want to end up matching hosts like '???'
-rw-r--r--lib/ansible/cli/adhoc.py2
1 files changed, 1 insertions, 1 deletions
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":