mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use Salt deprecation warning #37935
This commit is contained in:
parent
a96789353f
commit
a041b9f8e8
1 changed files with 5 additions and 3 deletions
|
@ -136,9 +136,11 @@ def _find_pg_binary(util):
|
|||
if not pg_bin_dir: # Fallback to incorrectly-documented setting
|
||||
pg_bin_dir = __salt__['config.option']('postgres.bins_dir')
|
||||
if pg_bin_dir:
|
||||
log.warning(
|
||||
'Using postgres.bins_dir is not supported. '
|
||||
'Replace this with postgres.pg_bin')
|
||||
salt.utils.warn_until(
|
||||
'Oxygen',
|
||||
'Using \'postgres.bins_dir\' is not officially supported and '
|
||||
'only exists as a workaround. Please replace this in your '
|
||||
'configuration with \'postgres.pg_bin\'.')
|
||||
|
||||
util_bin = salt.utils.which(util)
|
||||
if not util_bin:
|
||||
|
|
Loading…
Add table
Reference in a new issue