Skip to content

Commit 8c03b27

Browse files
committed
cast to int, a float64 of value 1 will cast to bool false
1 parent c4f6e49 commit 8c03b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cloudTemplateList.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var cloudTemplateListCmd = &cobra.Command{
6767
}
6868

6969
for _, template := range templateList.Items {
70-
if cast.ToBool(template["deprecated"]) {
70+
if cast.ToBool(cast.ToInt(template["deprecated"])) {
7171
continue
7272
}
7373

0 commit comments

Comments
 (0)