Skip to content

Commit 88b31dc

Browse files
committed
fix(client-go): error deserializing json
1 parent 1330404 commit 88b31dc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func ConfigList(appID string, oneLine bool) error {
4747

4848
// config.Values is type interface, so it needs to be converted to a string
4949
for _, key := range keys {
50-
configMap[key] = config.Values[key].(string)
50+
configMap[key] = fmt.Sprintf("%v", config.Values[key])
5151
}
5252

5353
fmt.Print(prettyprint.PrettyTabs(configMap, 6))

client/cmd/limits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func LimitsList(appID string) error {
3030
memoryMap := make(map[string]string)
3131

3232
for key, value := range config.Memory {
33-
memoryMap[key] = value.(string)
33+
memoryMap[key] = fmt.Sprintf("%v", value)
3434
}
3535

3636
fmt.Print(prettyprint.PrettyTabs(memoryMap, 5))

client/cmd/tags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TagsList(appID string) error {
2525
tagMap := make(map[string]string)
2626

2727
for key, value := range config.Tags {
28-
tagMap[key] = value.(string)
28+
tagMap[key] = fmt.Sprintf("%v", value)
2929
}
3030

3131
fmt.Print(prettyprint.PrettyTabs(tagMap, 5))

0 commit comments

Comments
 (0)