Skip to content

Commit

Permalink
Merge pull request #21971 from Luap99/relative-policy
Browse files Browse the repository at this point in the history
pkg/machine: fix relative DefaultPolicyJSONPath
  • Loading branch information
openshift-merge-bot[bot] authored Mar 7, 2024
2 parents 56e0f06 + 2ba3a2d commit 54fac87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machine/ocipull/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func policyPath() (string, error) {
if err != nil {
return "", fmt.Errorf("could not resolve relative path to binary: %w", err)
}
return filepath.Join(p, DefaultPolicyJSONPath, policyfile), nil
return filepath.Join(filepath.Dir(p), DefaultPolicyJSONPath, policyfile), nil
}
return "", &defaultPolicyError{errs: errs}
}

1 comment on commit 54fac87

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.