MCPcopy Create free account
hub / github.com/StackStorm/st2 / __init__

Method __init__

st2common/st2common/util/payload.py:25–29  ·  view source on GitHub ↗
(self, payload, prefix=TRIGGER_PAYLOAD_PREFIX)

Source from the content-addressed store, hash-verified

23
24class PayloadLookup(object):
25 def __init__(self, payload, prefix=TRIGGER_PAYLOAD_PREFIX):
26 self.context = {prefix: payload}
27
28 for system_scope in SYSTEM_SCOPES:
29 self.context[system_scope] = KeyValueLookup(scope=system_scope)
30
31 def get_value(self, lookup_key):
32 expr = parse(lookup_key)

Callers

nothing calls this directly

Calls 1

KeyValueLookupClass · 0.90

Tested by

no test coverage detected