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

Method _get_kv

st2common/st2common/services/keyvalues.py:270–278  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

268 )
269
270 def _get_kv(self, key):
271 scope = self._scope
272
273 try:
274 kvp = KeyValuePair.get_by_scope_and_name(scope=scope, name=key)
275 except StackStormDBObjectNotFoundError:
276 kvp = None
277
278 return kvp.value if kvp else ""
279
280
281def get_key_reference(scope, name, user=None):

Callers 1

_getMethod · 0.95

Calls 1

get_by_scope_and_nameMethod · 0.80

Tested by

no test coverage detected