1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-04 09:36:06 +02:00
parent a9614f73cc
commit 0cc741033b

View File

@ -135,7 +135,7 @@ export class DistributionDetector extends BaseClusterDetector {
try { try {
const response = await this.k8sRequest(""); const response = await this.k8sRequest("");
return response.paths?.find((api: string) => api === "/apis/project.openshift.io") !== undefined; return response.paths?.includes("/apis/project.openshift.io");
} catch (e) { } catch (e) {
return false; return false;
} }