Skip to content

Commit

Permalink
Grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
joshspicer authored Nov 29, 2023
1 parent 271e9bb commit dc540dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spec-node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export function isBuildKitImagePolicyError(err: any): boolean {
const errCmdOutput = err?.cmdOutput;
const errStderr = err?.stderr;

return (errCmdOutput && typeof errCmdOutput === 'string' && errCmdOutput.includes(imagePolicyErrorString) || errCmdOutput.includes(sourceDeniedString))
|| (errStderr && typeof errStderr === 'string' && errStderr.includes(imagePolicyErrorString) || errStderr.includes(sourceDeniedString));
return (errCmdOutput && typeof errCmdOutput === 'string' && (errCmdOutput.includes(imagePolicyErrorString) || errCmdOutput.includes(sourceDeniedString)))
|| (errStderr && typeof errStderr === 'string' && (errStderr.includes(imagePolicyErrorString) || errStderr.includes(sourceDeniedString)));
}

export async function inspectDockerImage(params: DockerResolverParameters | DockerCLIParameters, imageName: string, pullImageOnError: boolean) {
Expand Down

0 comments on commit dc540dc

Please sign in to comment.