1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Change method orders to avoid conflicts

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-12-23 11:13:46 +02:00
parent a04a38e91a
commit 39951729e6

View File

@ -36,14 +36,14 @@ export class DistributionDetector extends BaseClusterDetector {
return { value: "digitalocean", accuracy: 90};
}
if (this.isMirantis()) {
return { value: "mirantis", accuracy: 90};
}
if (this.isVMWare()) {
return { value: "vmware", accuracy: 90};
}
if (this.isMirantis()) {
return { value: "mirantis", accuracy: 90};
}
if (this.isHuawei()) {
return { value: "huawei", accuracy: 90};
}
@ -127,6 +127,10 @@ export class DistributionDetector extends BaseClusterDetector {
return this.version.includes("+");
}
protected isVMWare() {
return this.version.includes("+vmware");
}
protected isRke() {
return this.version.includes("-rancher");
}
@ -135,10 +139,6 @@ export class DistributionDetector extends BaseClusterDetector {
return this.version.includes("+k3s");
}
protected isVMWare() {
return this.version.includes("+vmware");
}
protected isHuawei() {
return this.version.includes("-CCE");
}