Skip to content

Commit 601bbc2

Browse files
committed
Fix the bug causing cloud and environment to not be displayed
1 parent e582ac1 commit 601bbc2

File tree

1 file changed

+2
-2
lines changed
  • internal/pkg/utils/index/presenters

1 file changed

+2
-2
lines changed

internal/pkg/utils/index/presenters/table.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ func PrintIndexDisplayTable(data *IndexDisplayData) {
245245
}
246246

247247
// Spec-specific information
248-
if data.Specification == "serverless" {
248+
if strings.HasPrefix(data.Specification, "serverless") {
249249
rows = append(rows, presenters.Row{"Cloud Provider", data.CloudProvider})
250250
rows = append(rows, presenters.Row{"Region", data.Region})
251-
} else if data.Specification == "pod" {
251+
} else if strings.HasPrefix(data.Specification, "pod") {
252252
rows = append(rows, presenters.Row{"Environment", data.Environment})
253253
rows = append(rows, presenters.Row{"Pod Type", data.PodType})
254254
rows = append(rows, presenters.Row{"Replicas", data.Replicas})

0 commit comments

Comments
 (0)