mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
a9614f73cc
commit
0cc741033b
1 file changed
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user