mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6217 from ashokrajar/patch-1
pause plugin doesn't flush raw_input prompt
This commit is contained in:
commit
3d44f7cd51
1 changed files with 2 additions and 2 deletions
|
@ -77,11 +77,11 @@ class ActionModule(object):
|
||||||
# Is 'prompt' a key in 'args'?
|
# Is 'prompt' a key in 'args'?
|
||||||
elif 'prompt' in args:
|
elif 'prompt' in args:
|
||||||
self.pause_type = 'prompt'
|
self.pause_type = 'prompt'
|
||||||
self.prompt = "[%s]\n%s: " % (hosts, args['prompt'])
|
self.prompt = "[%s]\n%s:\n" % (hosts, args['prompt'])
|
||||||
# Is 'args' empty, then this is the default prompted pause
|
# Is 'args' empty, then this is the default prompted pause
|
||||||
elif len(args.keys()) == 0:
|
elif len(args.keys()) == 0:
|
||||||
self.pause_type = 'prompt'
|
self.pause_type = 'prompt'
|
||||||
self.prompt = "[%s]\nPress enter to continue: " % hosts
|
self.prompt = "[%s]\nPress enter to continue:\n" % hosts
|
||||||
# I have no idea what you're trying to do. But it's so wrong.
|
# I have no idea what you're trying to do. But it's so wrong.
|
||||||
else:
|
else:
|
||||||
raise ae("invalid pause type given. must be one of: %s" % \
|
raise ae("invalid pause type given. must be one of: %s" % \
|
||||||
|
|
Loading…
Reference in a new issue