~chad.smith/charms/trusty/glance-simplestreams-sync/handle-connectionerror

« back to all changes in this revision

Viewing changes to scripts/glance-simplestreams-sync.py

Merged ~tealeg/trusty/glance-simplestreams-sync/work-with-multiple-rabbitMQs.  [a=tealeg][r=ack,danilo]

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
 
430
430
        id_conf = read_conf(ID_CONF_FILE_NAME)
431
431
 
 
432
        # The indentity.yaml file contains either a singular string variable
 
433
        # 'rabbit_host', or a comma separated list in the plural variable
 
434
        # 'rabbit_hosts'
 
435
        host = None
432
436
        hosts = id_conf.get('rabbit_hosts', None)
433
437
        if hosts is not None:
434
 
            host = hosts[0]
 
438
            host = hosts.split(",")[0]
435
439
        else:
436
440
            host = id_conf.get('rabbit_host', None)
437
441