clarify --step prompt

now shows full words and indicates default
fixes #7433
pull/14863/head
Brian Coca 9 years ago
parent 3d6ec52e83
commit 49bb4803b5

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

Loading…
Cancel
Save