saltutil.sync_utils does not work for the salt.utils.templates module? #51719
Labels
Question
The issue is more of a question rather than a bug or a feature request
Milestone
Description of Issue/Question
I wrote a PR (#51718) to fix the support of the Cheetah engine in
salt.utils.templates
, and I'm trying to synchronize my fix to each minion viasaltutil.sync_all
orsaltutil.sync_utils
(until you guys merge it or whatever). However, for some reason salt-minion is still picking up the path viasalt.utils.templates
(in site-packages/salt) instead of honoring the module in theextmods
cache. Is this unsupported for certain modules, or is it just a version issue on my end?Setup
Write
templates.py
to_utils
under your salt base environment so that when you callsaltutil.sync_utils
, it'll cache it under extmods. Just to be sure, you canrm
thesalt/utils/templates.py
file from yoursite-packages
on the target minion. This should normally be okay because salt-minion should pick up thetemplates.py
module that is cached in extmods.Steps to Reproduce Issue
Run
salt $target saltutil.sync_utils
to confirm the templates.py module gets synchronized. However, note that salt-minion will still use the oldsalt.utils.templates
module, or complain that it is unable to locate the module via anImportError
.Versions Report
The text was updated successfully, but these errors were encountered: