Return the primary name associate with the load, if an empty string is returned then the load does not match the function
(self, load)
| 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 | """ |