1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4250 from bbhoss/devel

Allow storing input from user in a pause prompt
This commit is contained in:
Michael DeHaan 2013-09-25 16:19:43 -07:00
commit a002a24973

View file

@ -101,7 +101,7 @@ class ActionModule(object):
# Clear out any unflushed buffered input which would
# otherwise be consumed by raw_input() prematurely.
tcflush(sys.stdin, TCIFLUSH)
raw_input(self.prompt)
self.result['user_input'] = raw_input(self.prompt)
except KeyboardInterrupt:
while True:
print '\nAction? (a)bort/(c)ontinue: '