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

Method get_pack_uid

st2common/st2common/models/api/base.py:161–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 return resource_uid
160
161 def get_pack_uid(self):
162 # TODO: This is not the most efficient approach - refactor this functionality into util
163 # module and re-use it here and in the DB model
164 resource_db = self.to_model(self)
165 pack_uid = resource_db.get_pack_uid()
166 return pack_uid
167
168 def has_valid_uid(self):
169 resource_db = self.to_model(self)

Callers

nothing calls this directly

Calls 1

to_modelMethod · 0.45

Tested by

no test coverage detected