Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-12-04 09:36:06 +02:00
1 parent a9614f73cc
commit 0cc741033b
1 file changed
+1 -1
@@ -135,7 +135,7 @@ export class DistributionDetector extends BaseClusterDetector {
try {
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) {
return false;
}