Exemplo n.º 1
0
def default_catalog_interface():
    """Detect if the configured catalog is Navigator or default to Atlas"""
    from metadata.metadata_sites import get_navigator_server_url
    catalog_interface = ''
    if atlas_flags.get_api_url():
        catalog_interface = 'atlas'
    elif get_navigator_server_url():
        catalog_interface = 'navigator'
    return catalog_interface
Exemplo n.º 2
0
def default_catalog_url():
    """Get from main Hue config directory if present"""
    return atlas_flags.get_api_url() if atlas_flags.get_api_url() else None
Exemplo n.º 3
0
def default_catalog_interface():
  """Detect if the configured catalog is Navigator or default to Atlas"""
  return 'atlas' if atlas_flags.get_api_url() else 'navigator'