in elastic/shared/parameter_sources/workflow_selector.py [0:0]
def set_request_params(self, action, request_params):
if isinstance(action, dict):
if "operation-type" in action:
if "request-params" in action and action["request-params"]:
action["request-params"] = {
**action["request-params"],
**request_params,
}
else:
action["request-params"] = request_params
else:
for _, value in action.items():
self.set_request_params(value, request_params)
elif isinstance(action, list):
for value in action:
self.set_request_params(value, request_params)