def _get_rabbitmq_rest_client(): config = app.config['BROKER'] return RabbitMQRestClient.create(host=config['host'], https=config['https'], username=config['username'], password=config['password'], verify=config.get('cert_path') or False)
def _get_rabbitmq_rest_client(config): return RabbitMQRestClient.create( host=config['host'], https=config['https'], username=config.get('username'), password=config.get('password'), verify=config.get('cert_path') or False, retry=config['retry'] )