Fix ansible-test encoding issues for exceptions.

This commit is contained in:
Matt Clay 2018-10-02 12:21:36 -07:00
parent e53390b3b1
commit 0d7a156319
3 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ def find_target_completion(target_func, prefix):
matches = walk_completion_targets(targets, prefix, short)
return matches
except Exception as ex: # pylint: disable=locally-disabled, broad-except
return [str(ex)]
return [u'%s' % ex]
def walk_completion_targets(targets, prefix, short=False):