diff --git a/cmd/check_container.go b/cmd/check_container.go index 51fef445..e41e4d67 100644 --- a/cmd/check_container.go +++ b/cmd/check_container.go @@ -157,7 +157,7 @@ func getContainerPolicyExceptions(ctx context.Context, pc pyxisClient) (policy.P return "", fmt.Errorf("could not retrieve project: %w", err) } log.Debugf("Certification project name is: %s", certProject.Name) - if certProject.Container.OsContentType == "scratch" { + if certProject.Container.Type == "scratch" { return policy.PolicyScratch, nil } diff --git a/cmd/fakes_test.go b/cmd/fakes_test.go index f92f4d98..9a246022 100644 --- a/cmd/fakes_test.go +++ b/cmd/fakes_test.go @@ -101,7 +101,7 @@ func gpFuncReturnError(ctx context.Context) (*pyxis.CertProject, error) { func gpFuncReturnScratchException(ctx context.Context) (*pyxis.CertProject, error) { return &pyxis.CertProject{ Container: pyxis.Container{ - OsContentType: "scratch", + Type: "scratch", }, }, nil }