Skip to content

Commit

Permalink
Use 'product_series' for version detection (#109)
Browse files Browse the repository at this point in the history
* Use 'product_series' for version detection

* Add changelog fragment for bugfix
  • Loading branch information
DonGiovanni83 authored Apr 23, 2024
1 parent 43c6087 commit aeb4bdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- version_util - Use `product_series` for version detection to avoid minor version
mismatches.
2 changes: 1 addition & 1 deletion plugins/module_utils/version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_opnsense_version() -> str:
f"There was an error getting the version {exc}"
) from exc

product_version = version_dict.get("product_version", None)
product_version = version_dict.get("product_series", None)
if product_version is None:
raise OPNSenseVersionUsageError(
"There was an error getting the version: "
Expand Down

0 comments on commit aeb4bdd

Please sign in to comment.