potiuk commented on a change in pull request #21145:
URL: https://github.com/apache/airflow/pull/21145#discussion_r808903452
##########
File path: dev/breeze/src/airflow_breeze/shell/enter_shell.py
##########
@@ -166,16 +162,14 @@ def build_image_checks(verbose: bool, shell_params:
ShellBuilder):
check_docker_resources(verbose, str(shell_params.airflow_sources),
shell_params.airflow_ci_image_name)
cmd = ['docker-compose', 'run', '--service-ports', '--rm', 'airflow']
cmd_added = shell_params.command_passed
+ env_variables =
construct_env_variables_docker_compose_command(shell_params)
if cmd_added is not None:
cmd.extend(['-c', cmd_added])
if verbose:
- shell_params.print_badge_info
- show_cmd = construct_arguments_docker_compose_command(shell_params)
- show_cmd.extend(cmd)
- console.print('Command to run:', (' ').join(show_cmd))
- output = run_command(cmd, verbose=False, text=True)
+ shell_params.print_badge_info()
+ output = run_command(cmd, verbose=verbose, env=env_variables, text=True)
Review comment:
And here I pass the env variables to run command - this parameter was
not present there - but I added it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]