1
0
mirror of https://github.com/ubuntu/microk8s.git synced 2021-05-23 02:23:41 +03:00

Fix yaml output of microk8s.status if not running (#2148)

Fix #2147

Signed-off-by: Karl-Philipp Richter <krichter@posteo.de>
This commit is contained in:
Karl-Philipp Richter
2021-04-22 11:55:34 +02:00
committed by GitHub
parent 233fa43a91
commit 6486a5bcc2

View File

@@ -98,7 +98,7 @@ def print_short_yaml(isReady, enabled_addons, disabled_addons):
print(" {}: disabled".format(disabled["name"]))
else:
print(
"{:>2} {} {}".format(
"{:>2}{} {}".format(
"",
"message:",
"microk8s is not running. Use microk8s inspect for a deeper inspection.",
@@ -135,7 +135,7 @@ def print_yaml(isReady, enabled_addons, disabled_addons):
print("{:>4}status: disabled".format(""))
else:
print(
"{:>2} {} {}".format(
"{:>2}{} {}".format(
"",
"message:",
"microk8s is not running. Use microk8s inspect for a deeper inspection.",