more pre-commmit fixes

This commit is contained in:
Daniel A. Wozniak 2025-02-21 03:05:01 -07:00
parent b5b850167b
commit 5e19e2db18

View file

@ -269,7 +269,7 @@ def _run_initdb(
"postgres.timeout", default=_DEFAULT_COMMAND_TIMEOUT_SECS
),
)
cmdstr = " ".join([shlex.quote(c) for c in cmd])
cmdstr = shlex.join(cmd)
ret = __salt__["cmd.run_all"](cmdstr, python_shell=False, **kwargs)
if ret.get("retcode", 0) != 0: