Fix syntax error
This commit is contained in:
parent
b9fdce6728
commit
ef293b7778
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue