From 846e2e3825be842115262e68e98d54eb1832b798 Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Fri, 12 Jan 2024 17:48:22 +0100 Subject: [PATCH] - [Bug]: The dstack run command doesn't support ${{ run.args }} anymore #820 --- src/dstack/_internal/cli/commands/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dstack/_internal/cli/commands/run.py b/src/dstack/_internal/cli/commands/run.py index 9c8be0356..ec003812d 100644 --- a/src/dstack/_internal/cli/commands/run.py +++ b/src/dstack/_internal/cli/commands/run.py @@ -106,8 +106,8 @@ def _command(self, args: argparse.Namespace): parser = argparse.ArgumentParser() configurator = run_configurators_mapping[ConfigurationType(conf.type)] configurator.register(parser) - args, unknown = parser.parse_known_args(args.unknown) - configurator.apply(args, unknown, conf) + known, unknown = parser.parse_known_args(args.unknown) + configurator.apply(known, unknown, conf) with console.status("Getting run plan..."): run_plan = self.api.runs.get_plan(