Skip to content

Commit e3c417e

Browse files
committed
feat(iaas): show image status on image describe
relates to STACKITCLI-231 and #908
1 parent fad8e6d commit e3c417e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/cmd/image/describe/describe.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,16 @@ func outputResult(p *print.Printer, outputFormat string, resp *iaas.Image) error
9696
table := tables.NewTable()
9797
if id := resp.Id; id != nil {
9898
table.AddRow("ID", *id)
99+
table.AddSeparator()
99100
}
100-
table.AddSeparator()
101-
102101
if name := resp.Name; name != nil {
103102
table.AddRow("NAME", *name)
104103
table.AddSeparator()
105104
}
105+
if status := resp.Status; status != nil {
106+
table.AddRow("STATUS", *status)
107+
table.AddSeparator()
108+
}
106109
if format := resp.DiskFormat; format != nil {
107110
table.AddRow("FORMAT", *format)
108111
table.AddSeparator()

0 commit comments

Comments
 (0)