ansible/test/integration/targets/expect/files/test_command.py

16 lines
303 B
Python
Raw Normal View History

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import sys
try:
input_function = raw_input
except NameError:
input_function = input
prompts = sys.argv[1:] or ['foo']
for prompt in prompts:
user_input = input_function(prompt)
print(user_input)