Fix syntax error

This commit is contained in:
Joshua Boniface 2020-01-05 13:19:21 -05:00
parent b9fdce6728
commit ef293b7778
1 changed files with 2 additions and 2 deletions

View File

@ -88,10 +88,10 @@ def get_info(config):
def format_info(cluster_information, oformat): def format_info(cluster_information, oformat):
if oformat == 'json': if oformat == 'json':
return json.dumps(cluster_information)) return json.dumps(cluster_information)
if oformat == 'json-pretty': if oformat == 'json-pretty':
return json.dumps(cluster_information, indent=4)) return json.dumps(cluster_information, indent=4)
# Plain formatting, i.e. human-readable # Plain formatting, i.e. human-readable
if cluster_information['health'] == 'Optimal': if cluster_information['health'] == 'Optimal':