updated dkron state and modules

This commit is contained in:
Paul 2020-11-23 01:45:14 +01:00
parent eba3841154
commit 39b45ba6ed
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function, unicode_literals
import salt.utils.dictupdate
import salt.utils.dictdiffer
def jobs(name, url="http://localhost:8080", verify=False, job_list=[]):
def jobs(name, url="http://localhost:8080", verify=False, jobs=[]):
ret = {'name': name,
'changes': {},
'result': True,
@ -13,7 +13,7 @@ def jobs(name, url="http://localhost:8080", verify=False, job_list=[]):
#dk_jobs = []
#dk_jobs = __salt__['dkron.get_jobs'](url, verify)
for job in job_list:
for job in jobs:
res = __salt__['dkron.set_jobs'](url, verify, job)
if res is not None:
ret['changes'][job['name']] = res

View File

@ -5,4 +5,4 @@ dkron-jobs:
- name: dkron-jobs
- url: {{ dkron.url }}
- verify: {{ dkron.verify }}
- job_list: {{ dkron.job_list }}
- job_list: {{ dkron.jobs }}