def get_messaging_urls():
    """
    Determines the right messaging urls to supply. In case the `cluster_urls` config is
    specified then that is used. Else the single `url` property is used.

    :rtype: ``list``
    """
    if cfg.CONF.messaging.cluster_urls:
        return cfg.CONF.messaging.cluster_urls
    return [cfg.CONF.messaging.url]

    Determines the right messaging urls to supply. In case the `cluster_urls` config is
    specified then that is used. Else the single `url` property is used.

    :rtype: ``list``
    
st2common/st2common/transport/utils.py