mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Merge pull request #4250 from bbhoss/devel
Allow storing input from user in a pause prompt
This commit is contained in:
commit
a002a24973
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class ActionModule(object):
|
||||||
# Clear out any unflushed buffered input which would
|
# Clear out any unflushed buffered input which would
|
||||||
# otherwise be consumed by raw_input() prematurely.
|
# otherwise be consumed by raw_input() prematurely.
|
||||||
tcflush(sys.stdin, TCIFLUSH)
|
tcflush(sys.stdin, TCIFLUSH)
|
||||||
raw_input(self.prompt)
|
self.result['user_input'] = raw_input(self.prompt)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
while True:
|
while True:
|
||||||
print '\nAction? (a)bort/(c)ontinue: '
|
print '\nAction? (a)bort/(c)ontinue: '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue