Skip to content

Commit 0f1d383

Browse files
committed
fix condition of storageclasses length
1 parent 66791b7 commit 0f1d383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/postgresflex/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func outputResultAsTable(p *print.Printer, model inputModel, options *options) e
222222
if model.Versions && len(*options.Versions) != 0 {
223223
content = append(content, buildVersionsTable(*options.Versions))
224224
}
225-
if model.Storages && options.Storages.Storages != nil && len(*options.Storages.Storages.StorageClasses) == 0 {
225+
if model.Storages && options.Storages.Storages != nil && len(*options.Storages.Storages.StorageClasses) > 0 {
226226
content = append(content, buildStoragesTable(*options.Storages.Storages))
227227
}
228228

0 commit comments

Comments
 (0)