Change key -> function to make log message more clear

Leaving it as "key" would potentially confuse people into thinking there
was a problem with an SSH/SSL/TLS/etc. key.
This commit is contained in:
Erik Johnson 2018-05-18 08:46:21 -05:00
parent 91f9fd38fd
commit 7192c38f66
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -1630,8 +1630,8 @@ class LazyLoader(salt.utils.lazy.LazyDict):
# if the modulename isn't in the whitelist, don't bother
if self.whitelist and mod_name not in self.whitelist:
log.error(
'Failed to load key %s because its module (%s) is not in '
'the whitelist: %s', key, mod_name, self.whitelist
'Failed to load function %s because its module (%s) is '
'not in the whitelist: %s', key, mod_name, self.whitelist
)
raise KeyError(key)