mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix(mac_brew_pkg): Use format instead of + operator
Fix for https://github.com/saltstack/salt/actions/runs/5298983857/jobs/9593610712?pr=57946 Signed-off-by: Antonio Ramón Sánchez Morales <antonioramonsm@gmail.com>
This commit is contained in:
parent
b258510a6d
commit
4fddd04ed2
1 changed files with 4 additions and 1 deletions
|
@ -97,8 +97,11 @@ def _homebrew_bin():
|
|||
"""
|
||||
Returns the full path to the homebrew binary in the PATH
|
||||
"""
|
||||
# Fetch PATH binary brew full path eg: /usr/local/bin/brew (symbolic link)
|
||||
brew = salt.utils.path.which("brew")
|
||||
# Fetch and ret brew installation folder full path eg: /opt/homebrew/bin/brew
|
||||
ret = __salt__["cmd.run"](
|
||||
salt.utils.path.which("brew") + " --prefix", output_loglevel="trace"
|
||||
f"{brew} --prefix", output_loglevel="trace"
|
||||
)
|
||||
ret += "/bin/brew"
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue