Skip to content

Commit 66791b7

Browse files
Benjosh95rubenhoenle
authored andcommitted
fix condition of storageclasses length
1 parent 6c8da29 commit 66791b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/mongodbflex/options/options.go

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

0 commit comments

Comments
 (0)