mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
[Code Review update] renamed function to is_enaled from list_enabled
This commit is contained in:
parent
20b0462289
commit
532d315dd1
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ def list_(show_all=False, return_yaml=True):
|
|||
return {'schedule': {}}
|
||||
|
||||
|
||||
def list_enabled(name):
|
||||
def is_enabled(name):
|
||||
'''
|
||||
List a Job only if its enabled
|
||||
|
||||
|
@ -101,7 +101,7 @@ def list_enabled(name):
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' schedule.enabled name=job_name
|
||||
salt '*' schedule.is_enabled name=job_name
|
||||
'''
|
||||
|
||||
current_schedule = __salt__['schedule.list'](show_all=False, return_yaml=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue