mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(core/home): fix an issue when connecting to an Edge kubernetes endpoint (#4274)
This commit is contained in:
parent
eb0278d230
commit
0019b22be5
3 changed files with 9 additions and 12 deletions
|
@ -13,16 +13,16 @@ class KubernetesHealthService {
|
|||
/**
|
||||
* PING
|
||||
*/
|
||||
async pingAsync() {
|
||||
async pingAsync(endpointID) {
|
||||
try {
|
||||
return await this.KubernetesHealth.ping().$promise;
|
||||
return await this.KubernetesHealth.ping({ id: endpointID }).$promise;
|
||||
} catch (err) {
|
||||
throw new PortainerError('Unable to retrieve environment health', err);
|
||||
}
|
||||
}
|
||||
|
||||
ping() {
|
||||
return this.$async(this.pingAsync);
|
||||
ping(endpointID) {
|
||||
return this.$async(this.pingAsync, endpointID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue