From 05d753806556dc19cb4c1acb358a4f22fdfbb5eb Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Wed, 24 Jan 2024 12:35:29 -0500 Subject: [PATCH] only disable if set exactly to 'true', not if set at all --- src/main/java/io/cryostat/platform/AbstractPlatformClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/cryostat/platform/AbstractPlatformClient.java b/src/main/java/io/cryostat/platform/AbstractPlatformClient.java index c1cf63a0a3..89d55f781d 100644 --- a/src/main/java/io/cryostat/platform/AbstractPlatformClient.java +++ b/src/main/java/io/cryostat/platform/AbstractPlatformClient.java @@ -35,7 +35,8 @@ protected AbstractPlatformClient(Environment environment) { @Override public boolean isEnabled() { - return !environment.hasEnv(Variables.DISABLE_BUILTIN_DISCOVERY); + return !Boolean.parseBoolean( + environment.getEnv(Variables.DISABLE_BUILTIN_DISCOVERY, "false")); } @Override