Skip to content

Commit 22651db

Browse files
authored
fix: set ocm config for list componentversions (#86)
1 parent 2482b5e commit 22651db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ocm-cli/ocm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (cv *ComponentVersion) GetComponentReference(name string) (*ComponentRefere
176176

177177
func (cv *ComponentVersion) ListComponentVersions(ctx context.Context, ocmConfig string) ([]string, error) {
178178

179-
out, err := ExecuteOutput(ctx, []string{"list", "componentversion", cv.Repository + "//" + cv.Component.Name}, []string{"--output", "yaml"}, NoOcmConfig)
179+
out, err := ExecuteOutput(ctx, []string{"list", "componentversion", cv.Repository + "//" + cv.Component.Name}, []string{"--output", "yaml"}, ocmConfig)
180180
if err != nil {
181181
return nil, err
182182
}

0 commit comments

Comments
 (0)