MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / _replace

Method _replace

keepercommander/commands/connect.py:199–201  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

197 # Single-pass substitution: re.sub never re-scans replacement text, so
198 # a field value containing ${…} cannot trigger a second expansion round.
199 def _replace(m):
200 pv = BaseConnectCommand.get_parameter_value(params, record, m.group(1), temp_files, **kwargs)
201 return pv or ''
202 return endpoint_parameter_pattern.sub(_replace, template)
203
204

Callers 5

_ensure_initMethod · 0.80
handleSsoRedirectMethod · 0.80
get_request_kwargsMethod · 0.80
executeMethod · 0.80

Calls 1

get_parameter_valueMethod · 0.80

Tested by

no test coverage detected