MCPcopy
hub / github.com/apache/caldera / _replace_payload_data

Method _replace_payload_data

app/objects/c_agent.py:334–339  ·  view source on GitHub ↗
(self, decoded_cmd, file_svc)

Source from the content-addressed store, hash-verified

332 return executor_change
333
334 def _replace_payload_data(self, decoded_cmd, file_svc):
335 for uuid in re.findall(self.RESERVED['payload'], decoded_cmd):
336 if self.is_uuid4(uuid):
337 _, display_name = file_svc.get_payload_name_from_uuid(uuid)
338 decoded_cmd = decoded_cmd.replace('#{payload:%s}' % uuid, display_name)
339 return decoded_cmd
340
341 def _get_preferred_executor_name(self):
342 if 'psh' in self.executors:

Callers 1

replaceMethod · 0.95

Calls 3

is_uuid4Method · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected