Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Split MIDDLEWARE_CLI command on spaces
Browse files Browse the repository at this point in the history
This is for users who doesn't use single command but run middleware cli
through python. Python subprocess requires all parts of the command
to be separated
  • Loading branch information
JakubFrejlach committed Nov 28, 2023
1 parent a4e6aa7 commit 93a095a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion griffon/commands/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ def get_product_contain_component(
# TODO: interim hack for middleware
if component_name and MIDDLEWARE_CLI and not no_middleware:
operation_status.update("searching deptopia middleware.")
mw_command = [MIDDLEWARE_CLI, component_name, "-e", "maven", "--json"]

# Use split for users who runs middleware via python
mw_command = [*MIDDLEWARE_CLI.split(), component_name, "-e", "maven", "--json"]
if strict_name_search:
mw_command.append("-s")
proc = subprocess.run(
Expand Down

0 comments on commit 93a095a

Please sign in to comment.