Hi list,

i want to add a custom salt module "pwgen" but always get this error:
salt.exceptions.SaltRenderError: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'pwgen.get_pw'

I tried adding it using "module_dirs" in a custom config file:
echo 'module_dirs: [/opt/passdb/pwgen-salt-module]' > /etc/salt/master.d/mycustom.conf

I tried using "extension_modules" directly in /etc/salt/master:
echo 'extension_modules: /opt/passdb/pwgen-salt-module' > /etc/salt/master

I also tried with and without subdirectory "modules" within "/opt/passdb/pwgen-salt-module"

After adding to config I restarted uyuni (spacewalk-service stop/start) and also salt (systemctl restart salt-master).

Where is my error? In Salt config or in my module (python) code?
How can i verify, that salt master accepts my additional config and reads/adds my custom module (/opt/passdb/pwgen-salt-module/pwgen.py)?

BR
Heiner