Adjust cli.ask() log formatting
This commit is contained in:
parent
bcb9228234
commit
4202d3c1dc
2 changed files with 3 additions and 3 deletions
|
|
@ -678,10 +678,10 @@ def ask(prompt_msg: str) -> bool:
|
||||||
# Show prompt
|
# Show prompt
|
||||||
response = input_text(f'{prompt_msg} [Y/N]: ', validator=validator)
|
response = input_text(f'{prompt_msg} [Y/N]: ', validator=validator)
|
||||||
if response.upper().startswith('Y'):
|
if response.upper().startswith('Y'):
|
||||||
LOG.info('%sYes', prompt_msg)
|
LOG.info('%s Yes', prompt_msg)
|
||||||
return True
|
return True
|
||||||
if response.upper().startswith('N'):
|
if response.upper().startswith('N'):
|
||||||
LOG.info('%sNo', prompt_msg)
|
LOG.info('%s No', prompt_msg)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# This shouldn't ever be reached
|
# This shouldn't ever be reached
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue