def get_messaging_urls():
 if CONF.messaging.cluster_urls:
  return CONF.messaging.cluster_urls
 return [CONF.messaging.url]

def get_messaging_urls ( ) : if CONF . messaging . cluster_urls : return CONF . messaging . cluster_urls return [ CONF . messaging . url ]
determines the right messaging urls to supply .