From 589537902e7653c1544cbfd1a6533a034dad6d44 Mon Sep 17 00:00:00 2001 From: AldarisPale <30774432+AldarisPale@users.noreply.github.com> Date: Thu, 5 Nov 2020 00:28:04 +0200 Subject: [PATCH] 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. --- salt/pillar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py index cb910307871..403afb2700e 100644 --- a/salt/pillar/__init__.py +++ b/salt/pillar/__init__.py @@ -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: