Skip to content

Commit b73f556

Browse files
committed
(maint) Add logging when image pull fails
This commit adds logging to indicate that we fall back to assuming a local version of the job image when pulling it from the remote fails. This should help users recognize that the pull errors are red herrings in air-gapped installs, and that the job will proceed, assuming the image has been loaded into the runtime out of band.
1 parent 64b093a commit b73f556

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/run_cd4pe_job.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ def update_container_image
435435
end
436436

437437
@logger.log(result[:message])
438+
439+
if (result[:exit_code] != 0)
440+
@logger.log("Unable to update image #{@container_image}, falling back to local image.")
441+
end
438442
end
439443
end
440444

0 commit comments

Comments
 (0)