Skip to content

Commit

Permalink
Optimize powerpipe list variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed Mar 6, 2024
1 parent f9fef64 commit 69d1a8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/display/list_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func getListLoadWorkspaceOpts[T modconfig.ModTreeItem]() []workspace.LoadWorkspa
switch any(empty).(type) {
case *modconfig.Mod:
opts = append(opts, workspace.WithBlockType([]string{schema.BlockTypeMod}))
case *modconfig.Variable:
opts = append(opts, workspace.WithBlockType([]string{schema.BlockTypeVariable}))
}
return opts
}
Expand Down

0 comments on commit 69d1a8f

Please sign in to comment.