Changeset 1240 for people/joerg.steffens/technical/bareos/triggerjob
- Timestamp:
- Mar 29, 2018, 8:05:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
people/joerg.steffens/technical/bareos/triggerjob/triggerjob.py
r1231 r1240 24 24 else: 25 25 jobs = director.call('list jobs client={} hours=24'.format(client))['jobs'] 26 job = director.call('list jobs client={} hours=24 last'.format(client))['jobs'][0]27 26 if jobs: 27 job = director.call('list jobs client={} hours=24 last'.format(client))['jobs'][0] 28 28 jobinfo = '{starttime}: jobid={jobid}, level={level}, status={jobstatus}'.format(**job) 29 29 print('{}: skipped, recent backups available ({})'.format(jobname, jobinfo))
Note:
See TracChangeset
for help on using the changeset viewer.