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

Method get_key_name

st2common/st2common/services/keyvalues.py:85–103  ·  view source on GitHub ↗

Function which returns an original key name. :rtype: ``str``

(self)

Source from the content-addressed store, hash-verified

83 _key_prefix = None
84
85 def get_key_name(self):
86 """
87 Function which returns an original key name.
88
89 :rtype: ``str``
90 """
91 key_name_parts = [DATASTORE_PARENT_SCOPE, self.scope]
92 key_name = self._key_prefix.split(":", 1)
93
94 if len(key_name) == 1:
95 key_name = key_name[0]
96 elif len(key_name) >= 2:
97 key_name = key_name[1]
98 else:
99 key_name = ""
100
101 key_name_parts.append(key_name)
102 key_name = ".".join(key_name_parts)
103 return key_name
104
105
106class KeyValueLookup(BaseKeyValueLookup):

Callers 1

decrypt_kvFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected