MCPcopy Create free account
hub / github.com/saltstack/salt / get_token

Method get_token

salt/daemons/masterapi.py:1344–1350  ·  view source on GitHub ↗

Return the name associated with a token or False if the token is invalid

(self, load)

Source from the content-addressed store, hash-verified

1342 return token
1343
1344 def get_token(self, load):
1345 """
1346 Return the name associated with a token or False if the token is invalid
1347 """
1348 if "token" not in load:
1349 return False
1350 return self.loadauth.get_tok(load["token"])
1351
1352 def publish(self, load):
1353 """

Callers

nothing calls this directly

Calls 1

get_tokMethod · 0.80

Tested by

no test coverage detected