MCPcopy
hub / github.com/saltstack/salt / get_serial

Method get_serial

salt/master.py:216–222  ·  view source on GitHub ↗
(cls, opts=None, event=None)

Source from the content-addressed store, hash-verified

214
215 @classmethod
216 def get_serial(cls, opts=None, event=None):
217 with cls.secrets["aes"]["secret"].get_lock():
218 if cls.secrets["aes"]["serial"].value == sys.maxsize:
219 cls.rotate_secrets(opts, event, use_lock=False)
220 else:
221 cls.secrets["aes"]["serial"].value += 1
222 return cls.secrets["aes"]["serial"].value
223
224 @classmethod
225 def rotate_secrets(

Callers 1

wrap_payloadMethod · 0.80

Calls 1

rotate_secretsMethod · 0.80

Tested by

no test coverage detected