Skip to content

Commit 0da53f7

Browse files
committed
ensure all enum values are accounted for
1 parent 1410fc3 commit 0da53f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lightning_app/cli/cmd_apps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ def as_json(self) -> str:
4646
def as_table(self) -> Table:
4747
table = Table("id", "name", "status", "cluster", "created", show_header=True, header_style="bold green")
4848
phases = {
49+
V1LightningappInstanceState.IMAGE_BUILDING: Text("building image", style="bold yellow"),
4950
V1LightningappInstanceState.PENDING: Text("pending", style="bold yellow"),
5051
V1LightningappInstanceState.RUNNING: Text("running", style="bold green"),
5152
V1LightningappInstanceState.FAILED: Text("failed", style="bold red"),
5253
V1LightningappInstanceState.STOPPED: Text("stopped"),
5354
V1LightningappInstanceState.NOT_STARTED: Text("not started"),
5455
V1LightningappInstanceState.DELETED: Text("deleted", style="bold red"),
56+
V1LightningappInstanceState.UNSPECIFIED: Text("unspecified", style="bold red"),
5557
}
5658

5759
for app in self.apps:

0 commit comments

Comments
 (0)