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

Method get_uid

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

Source from the content-addressed store, hash-verified

152 """
153
154 def get_uid(self):
155 # TODO: This is not the most efficient approach - refactor this functionality into util
156 # module and re-use it here and in the DB model
157 resource_db = self.to_model(self)
158 resource_uid = resource_db.get_uid()
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

Callers

nothing calls this directly

Calls 1

to_modelMethod · 0.45

Tested by

no test coverage detected