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

pull/4139/head
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
1 changed files with 7 additions and 3 deletions

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;
}