Skip to content

Commit

Permalink
Amends location of "up" in args_list
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Smith <[email protected]>
  • Loading branch information
tomaroberts and p-j-smith authored Feb 3, 2025
1 parent d05829d commit fe6ba69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/src/pixl_cli/_docker_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ def _parse_up_args(args: tuple[str, ...]) -> list:
"""Check up args and define default profile if not set"""
args_list = list(args)
if "--profile" not in args:
args_list = [arg for arg in args_list if arg != "up"] + [
"--profile",
"postgres-exposed",
"up",
]
up_index = args.index('up')
args_list[up_index:up_index] = ['--profile', 'postgres-exposed']
args_list.extend(["--wait", "--build", "--remove-orphans"])
return args_list

Expand Down

0 comments on commit fe6ba69

Please sign in to comment.