Skip to content

Commit 5e10e59

Browse files
committed
Fix phantom priority changes detected
1 parent f3d068a commit 5e10e59

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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)