diff --git a/cli/pkg/kctrl/cmd/package/release/release.go b/cli/pkg/kctrl/cmd/package/release/release.go index f8d40ebda..6a2ce4c74 100644 --- a/cli/pkg/kctrl/cmd/package/release/release.go +++ b/cli/pkg/kctrl/cmd/package/release/release.go @@ -90,7 +90,7 @@ func (o *ReleaseOptions) Run() error { if err != nil { return err } - if len(pkgConfigs.PkgMetadatas) != 1 || len(pkgConfigs.PkgMetadatas) != 1 { + if len(pkgConfigs.Pkgs) != 1 || len(pkgConfigs.PkgMetadatas) != 1 { return fmt.Errorf("Reading package-resource.yml: file malformed. (hint: delete the file and run `package init` again)") }