def list_parameters_from_groups(parameter_groups, groups):
    """Return a list of all the parameters in a list of groups
    """
    return [
        p for group in groups
        for p in parameter_groups[group].values()
    ]