Changeset 1231 for people/joerg.steffens
- Timestamp:
- Jan 26, 2017, 10:46:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
people/joerg.steffens/technical/bareos/triggerjob/triggerjob.py
r1230 r1231 14 14 def get_connected_clients(director): 15 15 result=director.call('status director')['client-connection'] 16 clients = [ result['name']]16 clients = [ client['name'] for client in result ] 17 17 return clients 18 18 … … 29 29 print('{}: skipped, recent backups available ({})'.format(jobname, jobinfo)) 30 30 else: 31 # TODO: check type=backup and failed 31 32 jobid = director.call('run {} yes'.format(jobname))['run']['jobid'] 32 33 print('{}: backup triggered, jobid={}'.format(jobname, jobid))
Note:
See TracChangeset
for help on using the changeset viewer.