def get_routing_key(exchange, bindings):
    """
    extract routing key for given exchange
    :param exchange: name of the exchange
    :param bindings: list bindings that hold the routing key
    """
    for binding in bindings:
        if binding['exchange'] == exchange:
            return binding.get('routing_key', '')
    return ''
