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:
parent
cb804e8813
commit
7d91ab72e1
2 changed files with 10 additions and 7 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue