exhibitor: Fix bug with automatic instance management
Exhibitor tests the auto-manage-instances config value to see if it's a non-zero integer, rather than a true/false string, which was getting put into the config before. This now causes autoManageInstances to behave correctly.
This commit is contained in:
parent
d460fd0f99
commit
168fbde17a
@ -15,9 +15,12 @@ let
|
|||||||
election-port=${toString cfg.zkElectionPort}
|
election-port=${toString cfg.zkElectionPort}
|
||||||
cleanup-period-ms=${toString cfg.zkCleanupPeriod}
|
cleanup-period-ms=${toString cfg.zkCleanupPeriod}
|
||||||
servers-spec=${concatStringsSep "," cfg.zkServersSpec}
|
servers-spec=${concatStringsSep "," cfg.zkServersSpec}
|
||||||
auto-manage-instances=${lib.boolToString cfg.autoManageInstances}
|
auto-manage-instances=${toString cfg.autoManageInstances}
|
||||||
${cfg.extraConf}
|
${cfg.extraConf}
|
||||||
'';
|
'';
|
||||||
|
# NB: toString rather than lib.boolToString on cfg.autoManageInstances is intended.
|
||||||
|
# Exhibitor tests if it's an integer not equal to 0, so the empty string (toString false)
|
||||||
|
# will operate in the same fashion as a 0.
|
||||||
configDir = pkgs.writeTextDir "exhibitor.properties" exhibitorConfig;
|
configDir = pkgs.writeTextDir "exhibitor.properties" exhibitorConfig;
|
||||||
cliOptionsCommon = {
|
cliOptionsCommon = {
|
||||||
configtype = cfg.configType;
|
configtype = cfg.configType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user