Skip to content

Commit 298a641

Browse files
authored
Merge pull request #53 from puppetlabs/log-pull-failure-fallback
(maint) Add logging when image pull fails
2 parents 6532173 + b73f556 commit 298a641

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)