mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42877 from terminalmage/add-cron-state-virtual
Add virtual func for cron state module
This commit is contained in:
commit
227ecddd13
1 changed files with 7 additions and 0 deletions
|
@ -150,6 +150,13 @@ from salt.modules.cron import (
|
|||
)
|
||||
|
||||
|
||||
def __virtual__():
|
||||
if 'cron.list_tab' in __salt__:
|
||||
return True
|
||||
else:
|
||||
return (False, 'cron module could not be loaded')
|
||||
|
||||
|
||||
def _check_cron(user,
|
||||
cmd,
|
||||
minute=None,
|
||||
|
|
Loading…
Add table
Reference in a new issue