mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3105 from shirou/devel
fix utf-8 named task failed with --step.
This commit is contained in:
commit
be33bcf16f
1 changed files with 2 additions and 1 deletions
|
@ -562,7 +562,8 @@ class PlaybookCallbacks(object):
|
||||||
if hasattr(self, 'start_at'): # we still have start_at so skip the task
|
if hasattr(self, 'start_at'): # we still have start_at so skip the task
|
||||||
self.skip_task = True
|
self.skip_task = True
|
||||||
elif hasattr(self, 'step') and self.step:
|
elif hasattr(self, 'step') and self.step:
|
||||||
resp = raw_input('Perform task: %s (y/n/c): ' % name)
|
msg = ('Perform task: %s (y/n/c): ' % name).encode(sys.stdout.encoding)
|
||||||
|
resp = raw_input(msg)
|
||||||
if resp.lower() in ['y','yes']:
|
if resp.lower() in ['y','yes']:
|
||||||
self.skip_task = False
|
self.skip_task = False
|
||||||
display(banner(msg))
|
display(banner(msg))
|
||||||
|
|
Loading…
Reference in a new issue