Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/dstack/_internal/cli/commands/offer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/dstack/_internal/cli/services/configurators/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Loading