def set_request_cache()

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


    def set_request_cache(self, action):
        if isinstance(action, dict):
            if "operation-type" in action and action["operation-type"] == "search":
                action["cache"] = str(self._request_cache).lower()
            else:
                for _, value in action.items():
                    self.set_request_cache(value)
        elif isinstance(action, list):
            for value in action:
                self.set_request_cache(value)