1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-30 18:59:41 +02:00

fix(docker/images): ignore pull image rejection (#4128)

This commit is contained in:
Chaim Lev-Ari 2020-07-30 21:24:34 +03:00 committed by GitHub
parent 4431d748c2
commit da143a7a22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,9 +117,13 @@ angular.module('portainer.docker').factory('ImageService', [
function pullImageAndIgnoreErrors(imageConfiguration) {
var deferred = $q.defer();
Image.create({}, imageConfiguration).$promise.finally(function final() {
deferred.resolve();
});
Image.create({}, imageConfiguration)
.$promise.catch(() => {
// left empty to ignore errors
})
.finally(function final() {
deferred.resolve();
});
return deferred.promise;
}