Skip to content

Commit 69a2e31

Browse files
author
Syeda Haya Fatima
committed
feat: fix output, STACKITMLO-1718
1 parent b146f03 commit 69a2e31

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

internal/cmd/modelexperiments/instance/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func outputResult(
115115
table.AddRow(
116116
instance.Id,
117117
instance.Name,
118-
instance.Region,
118+
*instance.Region,
119119
instance.State,
120120
)
121121
}

internal/cmd/modelexperiments/token/list/list.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ func outputResult(p *print.Printer, outputFormat string, resp *modelexperiments.
8080
table := tables.NewTable()
8181
table.SetHeader("ID", "NAME", "DESCRIPTION")
8282
for _, token := range resp.Tokens {
83-
table.AddRow(token.Id, token.Name, token.Description)
83+
description := ""
84+
if token.Description != nil {
85+
description = *token.Description
86+
}
87+
table.AddRow(token.Id, token.Name, description)
8488
}
8589
return table.Display(p)
8690
})

0 commit comments

Comments
 (0)