()
return profiles
Load all the profiles installed on the system.
Load all the profiles installed on the system.
Load all the profiles installed on the system .
def _load_default_profiles():
    # type: () -> Dict[str, Any]
    """Load all the profiles installed on the system."""
    profiles = {}

    for path in _iter_default_profile_file_paths():
        name = _get_profile_name(path)

        if _is_abstract_profile(name):
            continue

        definition = _read_profile_definition(path)
        try:
            recursively_expand_base_profiles(definition)
        except Exception:
            logger.error("Could not expand base profile %s", path)
            raise
        profiles[name] = {'definition': definition}

    return profiles
def _load_default_profiles ( ) : # type: () -> Dict[str, Any] profiles = { } for path in _iter_default_profile_file_paths ( ) : name = _get_profile_name ( path ) if _is_abstract_profile ( name ) : continue definition = _read_profile_definition ( path ) try : recursively_expand_base_profiles ( definition ) except Exception : logger . error ( "Could not expand base profile %s" , path ) raise profiles [ name ] = { 'definition' : definition } return profiles