Don't click.echo except in main program
Return all the strings we printed directly, so that the caller can print them normally.
This commit is contained in:
@ -156,8 +156,5 @@ def format_info(cluster_information, oformat):
|
||||
ainformation.append('')
|
||||
ainformation.append(osds_string)
|
||||
|
||||
information = '\n'.join(ainformation)
|
||||
click.echo(information)
|
||||
|
||||
click.echo('')
|
||||
|
||||
ainformation.append('')
|
||||
return '\n'.join(ainformation)
|
||||
|
Reference in New Issue
Block a user