1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 07:15:23 +02:00

fix(api): remove automatic backend failure for Down endpoints (#3160)

This commit is contained in:
Anthony Lapenna 2019-09-20 16:13:58 +12:00 committed by GitHub
parent a5e5983c28
commit 07505fabcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -18,7 +18,8 @@ angular.module('portainer.app')
}
checkEndpointStatus(endpoint)
.then(function success() {
.then(function success(data) {
endpoint = data;
return switchToDockerEndpoint(endpoint);
}).catch(function error(err) {
Notifications.error('Failure', err, 'Unable to verify endpoint status');
@ -59,6 +60,7 @@ angular.module('portainer.app')
EndpointService.updateEndpoint(endpoint.Id, { Status: status })
.then(function success() {
endpoint.Status = status;
deferred.resolve(endpoint);
}).catch(function error(err) {
deferred.reject({ msg: 'Unable to update endpoint status', err: err });