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

fix(agent): add agent header [EE-2433] (#6484)

* fix(agent): add agent header [EE-2433]

fix [EE-2433]

* fix(containers): reload current endpoint id
This commit is contained in:
Chaim Lev-Ari 2022-02-01 09:37:12 +02:00 committed by GitHub
parent cb804e8813
commit 7d91ab72e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View file

@ -199,8 +199,10 @@ function ContainerServiceFactory($q, Container, LogHelper, $timeout, EndpointPro
return service;
function withEndpointId(func) {
const endpointId = EndpointProvider.endpointID();
return function (...args) {
const endpointId = EndpointProvider.endpointID();
return func.bind(null, endpointId);
return func(endpointId, ...args);
};
}
}