mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix doctrings and warn message for salt.states.supervisord
. Refs #6961.
This commit is contained in:
parent
4f63e9d814
commit
96f5e4366c
@ -51,17 +51,26 @@ def running(name,
|
||||
|
||||
name
|
||||
Service name as defined in the supervisor configuration file
|
||||
|
||||
restart
|
||||
Whether to force a restart
|
||||
|
||||
update
|
||||
Whether to update the supervisor configuration.
|
||||
|
||||
runas
|
||||
Name of the user to run the supervisorctl command
|
||||
|
||||
.. deprecated:: 0.17.0
|
||||
|
||||
user
|
||||
Name of the user to run the supervisorctl command
|
||||
|
||||
.. versionadded:: 0.17.0
|
||||
|
||||
conf_file
|
||||
path to supervisorctl config file
|
||||
|
||||
bin_env
|
||||
path to supervisorctl bin or path to virtualenv with supervisor installed
|
||||
|
||||
@ -70,8 +79,8 @@ def running(name,
|
||||
|
||||
salt.utils.warn_until(
|
||||
(0, 19),
|
||||
'Let\'s support \'runas\' until salt 0.19.0 is out, after which '
|
||||
'it will stop being supported',
|
||||
'Please remove \'runas\' support at this stage. \'user\' support was '
|
||||
'added in 0.17.0',
|
||||
_dont_call_warnings=True
|
||||
)
|
||||
if runas:
|
||||
@ -190,13 +199,20 @@ def dead(name,
|
||||
|
||||
name
|
||||
Service name as defined in the supervisor configuration file
|
||||
|
||||
runas
|
||||
Name of the user to run the supervisorctl command
|
||||
|
||||
.. deprecated:: 0.17.0
|
||||
|
||||
user
|
||||
Name of the user to run the supervisorctl command
|
||||
|
||||
.. versionadded:: 0.17.0
|
||||
|
||||
conf_file
|
||||
path to supervisorctl config file
|
||||
|
||||
bin_env
|
||||
path to supervisorctl bin or path to virtualenv with supervisor installed
|
||||
|
||||
@ -205,8 +221,8 @@ def dead(name,
|
||||
|
||||
salt.utils.warn_until(
|
||||
(0, 19),
|
||||
'Let\'s support \'runas\' until salt 0.19.0 is out, after which '
|
||||
'it will stop being supported',
|
||||
'Please remove \'runas\' support at this stage. \'user\' support was '
|
||||
'added in 0.17.0',
|
||||
_dont_call_warnings=True
|
||||
)
|
||||
if runas:
|
||||
|
Loading…
Reference in New Issue
Block a user