def remove_pipelines()

in elastic/shared/parameter_sources/templates.py [0:0]


def remove_pipelines(content, remove):
    if not remove:
        return content
    if "template" in content and "settings" in content["template"] and "index" in content["template"]["settings"]:
        if "default_pipeline" in content["template"]["settings"]["index"]:
            del content["template"]["settings"]["index"]["default_pipeline"]
        if "final_pipeline" in content["template"]["settings"]["index"]:
            del content["template"]["settings"]["index"]["final_pipeline"]
    return content