From 49dcea408f4db6f26f6b7aaa33e7672d436381ed Mon Sep 17 00:00:00 2001 From: Emad Rad Date: Thu, 18 Jul 2024 16:38:22 +0330 Subject: [PATCH] fix: show interactive config in the right place Before this, the "Interactive platform configuration" message was shown even if -I flag was set for tutor dev|local launch. --- tutor/commands/compose.py | 2 +- tutor/commands/k8s.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutor/commands/compose.py b/tutor/commands/compose.py index b6ca7d3059..824b0d1c45 100644 --- a/tutor/commands/compose.py +++ b/tutor/commands/compose.py @@ -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, diff --git a/tutor/commands/k8s.py b/tutor/commands/k8s.py index 7e960ce3aa..d938fdff2b 100644 --- a/tutor/commands/k8s.py +++ b/tutor/commands/k8s.py @@ -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 )