Skip to content

Commit

Permalink
only disable if set exactly to 'true', not if set at all
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Feb 6, 2024
1 parent bf43947 commit 05d7538
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05d7538

Please sign in to comment.