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

Method load_name

salt/auth/__init__.py:99–113  ·  view source on GitHub ↗

Return the primary name associate with the load, if an empty string is returned then the load does not match the function

(self, load)

Source from the content-addressed store, hash-verified

97 self.destroy()
98
99 def load_name(self, load):
100 """
101 Return the primary name associate with the load, if an empty string
102 is returned then the load does not match the function
103 """
104 if "eauth" not in load:
105 return ""
106 fstr = "{}.auth".format(load["eauth"])
107 if fstr not in self.auth:
108 return ""
109 try:
110 pname_arg = salt.utils.args.arg_lookup(self.auth[fstr])["args"][0]
111 return load[pname_arg]
112 except IndexError:
113 return ""
114
115 def __auth_call(self, load):
116 """

Callers 5

mk_tokenMethod · 0.95
get_auth_listMethod · 0.95
publishMethod · 0.80
publishMethod · 0.80
test_load_nameFunction · 0.80

Calls 1

formatMethod · 0.80

Tested by 1

test_load_nameFunction · 0.64