|
|
@ -101,7 +101,7 @@ class ActionModule(ActionBase):
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if not pause_type == 'prompt':
|
|
|
|
if not pause_type == 'prompt':
|
|
|
|
print "(^C-c = continue early, ^C-a = abort)"
|
|
|
|
print("(^C-c = continue early, ^C-a = abort)")
|
|
|
|
#print("[%s]\nPausing for %s seconds" % (hosts, seconds))
|
|
|
|
#print("[%s]\nPausing for %s seconds" % (hosts, seconds))
|
|
|
|
print("[%s]\nPausing for %s seconds" % (self._task.get_name().strip(), seconds))
|
|
|
|
print("[%s]\nPausing for %s seconds" % (self._task.get_name().strip(), seconds))
|
|
|
|
time.sleep(seconds)
|
|
|
|
time.sleep(seconds)
|
|
|
@ -112,7 +112,7 @@ class ActionModule(ActionBase):
|
|
|
|
result['user_input'] = raw_input(prompt.encode(sys.stdout.encoding))
|
|
|
|
result['user_input'] = raw_input(prompt.encode(sys.stdout.encoding))
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
print '\nAction? (a)bort/(c)ontinue: '
|
|
|
|
print('\nAction? (a)bort/(c)ontinue: ')
|
|
|
|
c = getch()
|
|
|
|
c = getch()
|
|
|
|
if c == 'c':
|
|
|
|
if c == 'c':
|
|
|
|
# continue playbook evaluation
|
|
|
|
# continue playbook evaluation
|
|
|
|