Ejemplo n.º 1
0
 def _init_cloud_links():
     haproxy_container = fetch_remote_obj(HAPROXY_CONTAINER_URI)
     if haproxy_container:
         links = CloudModeLinkHelper.get_cloud_mode_links(haproxy_container)
         Haproxy.cls_linked_services = CloudModeLinkHelper.get_linked_services(links)
         logger.info("Linked service: %s", ", ".join(CloudModeLinkHelper.get_service_links_str(links)))
         logger.info("Linked container: %s", ", ".join(CloudModeLinkHelper.get_container_links_str(links)))
         return links
     else:
         return {}
 def _init_cloud_links():
     haproxy_container = fetch_remote_obj(HAPROXY_CONTAINER_URI)
     if haproxy_container:
         links = CloudModeLinkHelper.get_cloud_mode_links(haproxy_container)
         Haproxy.cls_linked_services = CloudModeLinkHelper.get_linked_services(links)
         logger.info("Linked service: %s", ", ".join(CloudModeLinkHelper.get_service_links_str(links)))
         logger.info("Linked container: %s", ", ".join(CloudModeLinkHelper.get_container_links_str(links)))
         return links
     else:
         return {}