Make extmod not found error message mean more

When module is places in the incorrect directory, the loading of the module will fail. Give more meaningful error message and a possible solution to the problem.
I've hit this problem personally and debugging it took more than 3 hours.
This commit is contained in:
AldarisPale 2020-11-05 00:28:04 +02:00 committed by Daniel Wozniak
parent e4c1da4323
commit 589537902e

View file

@ -1212,7 +1212,7 @@ class Pillar:
for key, val in run.items():
if key not in self.ext_pillars:
log.critical(
"Specified ext_pillar interface %s is unavailable", key
"ext_pillar interface named %s is unavailable. Make sure it is placed in the correct directory/location. Check https://docs.saltstack.com/en/latest/ref/configuration/master.html#extension-modules for details.", key
)
continue
try: