Skip to content

Commit

Permalink
fix: show interactive config in the right place
Browse files Browse the repository at this point in the history
Before this, the "Interactive platform configuration" message was shown even if -I flag was set for tutor dev|local launch.
  • Loading branch information
CodeWithEmad committed Jul 18, 2024
1 parent 01ca597 commit 49dcea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tutor/commands/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def interactive_configuration(
run_for_prod: t.Optional[bool] = None,
clean_environment: bool = False,
) -> None:
click.echo(fmt.title("Interactive platform configuration"))
config = tutor_config.load_minimal(context.obj.root)
if interactive:
click.echo(fmt.title("Interactive platform configuration"))
interactive_config.ask_questions(
config,
context.obj.root,
Expand Down
2 changes: 1 addition & 1 deletion tutor/commands/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ def launch(
from_release=tutor_env.get_env_release(context.obj.root),
)

click.echo(fmt.title("Interactive platform configuration"))
config = tutor_config.load_minimal(context.obj.root)
if not non_interactive:
click.echo(fmt.title("Interactive platform configuration"))
interactive_config.ask_questions(
config, context.obj.root, run_for_prod=True, clean_environment=clean_env
)
Expand Down

0 comments on commit 49dcea4

Please sign in to comment.