in elastic/shared/parameter_sources/workflow_selector.py [0:0]
def set_target_index(self, action):
if isinstance(action, dict):
if "operation-type" in action and action["operation-type"] == "search":
action["index"] = self._workflow_target
else:
for key, value in action.items():
self.set_target_index(value)
elif isinstance(action, list):
for value in action:
self.set_target_index(value)