Skip to content

extmods/utils is not in sys.path after synchronizing _utils directory #51958

@aplanas

Description

@aplanas

Description of Issue/Question

When doing a state.hightstate, the initial synchronization works properly and all the _modules, _utils and _grains code from the formula are living in '/var/cache/salt/minion/files/base/' and ('/var/cache/salt/minion/extmods'.

The problem is that when a _module import some code that is living in _utils, this is not found the during this first highstate, as for some reason /var/cache/salt/minion/extmods/utils is not in the sys.path, as only /var/cache/salt/minion/extmods/modules is there.

The extmods/utils is present in the second highstate run, and the import succeed.

Versions Report

develop branch

Metadata

Metadata

Labels

pending-discussionThe issue or pull request needs more discussion before it can be closed or merged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions