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

Method _get_by_pack_ref

st2api/st2api/controllers/resource.py:439–447  ·  view source on GitHub ↗
(self, pack_ref, exclude_fields=None, include_fields=None)

Source from the content-addressed store, hash-verified

437 return resource_db
438
439 def _get_by_pack_ref(self, pack_ref, exclude_fields=None, include_fields=None):
440 try:
441 resource_db = self.access.get(
442 pack=pack_ref, exclude_fields=exclude_fields, only_fields=include_fields
443 )
444 except Exception:
445 resource_db = None
446
447 return resource_db
448
449 def _get_by_name_or_id(self, name_or_id, exclude_fields=None, include_fields=None):
450 """

Callers 1

_get_one_by_pack_refMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected