def expand_classes_glob(classes, salt_data):
    '''
    Expand the list of `classes` to no longer include any globbing.

    :param iterable(str) classes: Iterable of classes
    :param dict salt_data: configuration data
    :return: Expanded list of classes with resolved globbing
    :rtype: list(str)
    '''
    all_classes = []
    expanded_classes = []
    saltclass_path = salt_data['path']

    for _class in classes:
        all_classes.extend(match_class_glob(_class, saltclass_path))

    for _class in all_classes:
        if _class not in expanded_classes:
            expanded_classes.append(_class)

    return expanded_classes
def expand_classes_glob ( classes , salt_data ) : all_classes = [ ] expanded_classes = [ ] saltclass_path = salt_data [ 'path' ] for _class in classes : all_classes . extend ( match_class_glob ( _class , saltclass_path ) ) for _class in all_classes : if _class not in expanded_classes : expanded_classes . append ( _class ) return expanded_classes
Expand the list of `classes` to no longer include any globbing.

    :param iterable(str) classes: Iterable of classes
    :param dict salt_data: configuration data
    :return: Expanded list of classes with resolved globbing
    :rtype: list(str)