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:
parent
4431d748c2
commit
da143a7a22
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue