diff --git a/harness/determined/deploy/gcp/cli.py b/harness/determined/deploy/gcp/cli.py index 67a3f8115fa..01a29ae0388 100644 --- a/harness/determined/deploy/gcp/cli.py +++ b/harness/determined/deploy/gcp/cli.py @@ -9,7 +9,7 @@ import determined.deploy from determined.cli.errors import CliError -from determined.common.declarative_argparse import Arg, ArgGroup, Cmd, Group +from determined.common.declarative_argparse import Arg, ArgGroup, Cmd, Group, string_to_bool from determined.deploy.errors import MasterTimeoutExpired from determined.deploy.gcp import constants, gcp @@ -427,7 +427,7 @@ def parse(s: str) -> Tuple[str, str]: ), Arg( "--preemptible", - type=bool, + type=string_to_bool, default=False, help="whether to use preemptible instances for dynamic agents", ), @@ -535,7 +535,7 @@ def parse(s: str) -> Tuple[str, str]: ), Arg( "--preemption-enabled", - type=bool, + type=string_to_bool, default=constants.defaults.PREEMPTION_ENABLED, help="whether task preemption is supported in the scheduler " "(only configurable for priority scheduler).",