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

clarify --step prompt

now shows full words and indicates default
fixes #7433
This commit is contained in:
Brian Coca 2016-03-08 10:55:38 -05:00
parent 3d6ec52e83
commit 49bb4803b5

View file

@ -623,10 +623,10 @@ class StrategyBase:
def _take_step(self, task, host=None):
ret=False
msg=u'Perform task: %s ' % task
if host:
msg = u'Perform task: %s on %s (y/n/c): ' % (task, host)
else:
msg = u'Perform task: %s (y/n/c): ' % task
msg += u'on %s ' % host
msg += u'(N)o/(y)es/(c)ontinue: '
resp = display.prompt(msg)
if resp.lower() in ['y','yes']: