Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus-wmi-exporter.sls Shows an error with attribute "version_compare" #1857

Open
intentropy opened this issue Apr 21, 2021 · 1 comment

Comments

@intentropy
Copy link

The prometheus-wmi-exporter.sls is showing an error when running pkg.refresh_db on a minion.

        salt-winrepo-ng\prometheus-wmi-exporter.sls:
            - Failed to compile, Jinja variable 'salt.utils.odict.OrderedDict object' has no attribute 'version_compare'

This appears to be occurring on line 42 of the SLS file.

    {% if salt.pkg_resource.version_compare(version, '>=', '0.13.0') %}
@TerraTalpi
Copy link
Contributor

Hi @ShaneHutter, I have written the prometheus wmi exporter, because I am using it on our servers. I have just installed the wmi-exporter with a state.apply with salt version 3002.6 on a Windows Server 2019 build 1809. The pkg.refresh_db has also worked on the server.

Can you provide a little more details, because I cannot find any problem with that? Maybe your salt version on either the master or minino is too old?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants