diff --git a/src/dstack/_internal/cli/commands/offer.py b/src/dstack/_internal/cli/commands/offer.py index 92b54e2b1..cb920ec27 100644 --- a/src/dstack/_internal/cli/commands/offer.py +++ b/src/dstack/_internal/cli/commands/offer.py @@ -84,6 +84,8 @@ def _command(self, args: argparse.Namespace): job_plan = run_plan.job_plans[0] if args.format == "json": + # FIXME: Should use effective_run_spec from run_plan, + # since the spec can be changed by the server and plugins output = { "project": run_plan.project_name, "user": run_plan.user, diff --git a/src/dstack/_internal/cli/services/configurators/run.py b/src/dstack/_internal/cli/services/configurators/run.py index 07ff9ef02..5e9440213 100644 --- a/src/dstack/_internal/cli/services/configurators/run.py +++ b/src/dstack/_internal/cli/services/configurators/run.py @@ -105,7 +105,7 @@ def apply_configuration( changed_fields = [] if run_plan.action == ApplyAction.UPDATE: diff = diff_models( - run_plan.run_spec.configuration, + run_plan.get_effective_run_spec().configuration, run_plan.current_resource.run_spec.configuration, ) changed_fields = list(diff.keys())