Fix Openshift distribution detector (#1792)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-12-17 19:54:30 +02:00
1 parent 733fc8a658
commit de7bd32bc2
1 file changed
+4 -4
@@ -56,12 +56,12 @@ export class DistributionDetector extends BaseClusterDetector {
return { value: "docker-desktop", accuracy: 80};
}
if (this.isCustom()) {
return { value: "custom", accuracy: 10};
if (this.isCustom() && await this.isOpenshift()) {
return { value: "openshift", accuracy: 90};
}
if (await this.isOpenshift()) {
return { value: "openshift", accuracy: 90};
if (this.isCustom()) {
return { value: "custom", accuracy: 10};
}
return { value: "unknown", accuracy: 10};