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

fix for pkg_format var on Windows systems #59

Merged
merged 2 commits into from
Dec 6, 2024
Merged

fix for pkg_format var on Windows systems #59

merged 2 commits into from
Dec 6, 2024

Conversation

jfunke4
Copy link
Collaborator

@jfunke4 jfunke4 commented Dec 6, 2024

No description provided.

@jfunke4 jfunke4 requested a review from Mo-GH December 6, 2024 12:13
Copy link

github-actions bot commented Dec 6, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and the docs are now incorporated into main:
https://svalabs.github.io/sva.sentinelone/branch/main

@Mo-GH Mo-GH merged commit bdd1a04 into main Dec 6, 2024
46 checks passed
@Mo-GH Mo-GH deleted the fix_pkg_format branch December 6, 2024 12:26
elif ansible_facts.pkg_mgr == 'apt' %}deb{%
elif ansible_facts.os_family == 'Windows' and not win_use_exe %}msi{%
elif ansible_facts.os_family == 'Windows' and win_use_exe %}exe{%
pkg_format: "{% if ansible_facts.pkg_mgr | default([]) in ['yum', 'dnf', 'zypper'] %}rpm{%
Copy link
Collaborator

@mwester117 mwester117 Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfunke4 the type of the pkg_mgr var is a string not a list. I would suggest | default('')

Copy link
Collaborator Author

@jfunke4 jfunke4 Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. We will fix this in a future release.
For now it's important to have this var defined, as it is not included in the ansible facts on windows systems

Copy link
Collaborator

@mwester117 mwester117 Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the problem. Thanks for fixing it!

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

Successfully merging this pull request may close these issues.

3 participants