Skip to content

Commit 256f473

Browse files
authored
Fix phantom priority changes detected (#2702)
1 parent f3d068a commit 256f473

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/dstack/_internal/cli/commands/offer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def _command(self, args: argparse.Namespace):
8484
job_plan = run_plan.job_plans[0]
8585

8686
if args.format == "json":
87+
# FIXME: Should use effective_run_spec from run_plan,
88+
# since the spec can be changed by the server and plugins
8789
output = {
8890
"project": run_plan.project_name,
8991
"user": run_plan.user,

src/dstack/_internal/cli/services/configurators/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def apply_configuration(
105105
changed_fields = []
106106
if run_plan.action == ApplyAction.UPDATE:
107107
diff = diff_models(
108-
run_plan.run_spec.configuration,
108+
run_plan.get_effective_run_spec().configuration,
109109
run_plan.current_resource.run_spec.configuration,
110110
)
111111
changed_fields = list(diff.keys())

0 commit comments

Comments
 (0)