mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Remove useless argument from _run_psql
This seems not to be used anywhere, let's make it a bit simpler.
This commit is contained in:
parent
a52ebdac3b
commit
aec180376d
@ -73,8 +73,7 @@ def __virtual__():
|
||||
return False
|
||||
|
||||
|
||||
def _run_psql(cmd, runas=None, password=None, host=None, port=None, user=None,
|
||||
run_cmd='cmd.run_all'):
|
||||
def _run_psql(cmd, runas=None, password=None, host=None, port=None, user=None):
|
||||
'''
|
||||
Helper function to call psql, because the password requirement
|
||||
makes this too much code to be repeated in each function below
|
||||
@ -114,7 +113,7 @@ def _run_psql(cmd, runas=None, password=None, host=None, port=None, user=None,
|
||||
__salt__['file.chown'](pgpassfile, runas, '')
|
||||
kwargs['env'] = {'PGPASSFILE': pgpassfile}
|
||||
|
||||
ret = __salt__[run_cmd](cmd, python_shell=False, **kwargs)
|
||||
ret = __salt__['cmd.run_all'](cmd, python_shell=False, **kwargs)
|
||||
|
||||
if ret.get('retcode', 0) != 0:
|
||||
log.error('Error connecting to Postgresql server')
|
||||
|
Loading…
Reference in New Issue
Block a user