Changeset 1231 for people


Ignore:
Timestamp:
01/26/17 10:46:46 (5 years ago)
Author:
joergs
Message:

get_connected_clients fixed (requires bareos-16.2.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • people/joerg.steffens/technical/bareos/triggerjob/triggerjob.py

    r1230 r1231  
    1414def get_connected_clients(director):
    1515    result=director.call('status director')['client-connection']
    16     clients = [ result['name'] ]
     16    clients = [ client['name'] for client in result ]
    1717    return clients
    1818
     
    2929                print('{}: skipped, recent backups available ({})'.format(jobname, jobinfo))
    3030            else:
     31                # TODO: check type=backup and failed
    3132                jobid = director.call('run {} yes'.format(jobname))['run']['jobid']
    3233                print('{}: backup triggered, jobid={}'.format(jobname, jobid))
Note: See TracChangeset for help on using the changeset viewer.