mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix behavior of psql -c option with postgresql 9.6
psql -c option no longer implies --no-psqlrc with postgresql 9.6, it must be set explicitly. Fixes #36787.
This commit is contained in:
parent
90cca6b135
commit
574e30e915
1 changed files with 1 additions and 0 deletions
|
@ -306,6 +306,7 @@ def _psql_cmd(*args, **kwargs):
|
|||
cmd = [salt.utils.which('psql'),
|
||||
'--no-align',
|
||||
'--no-readline',
|
||||
'--no-psqlrc',
|
||||
'--no-password'] # It is never acceptable to issue a password prompt.
|
||||
if user:
|
||||
cmd += ['--username', user]
|
||||
|
|
Loading…
Add table
Reference in a new issue