mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
Use Cobbler API version format to check version (#11045)
* Use Cobbler API version format to check version Cobbler use the formula below to return the version: float(format(int(elems[0]) + 0.1 * int(elems[1]) + 0.001 * int(elems[2]), '.3f')) Which means that 3.3.7 is changed to 3.307 which is > 3.4. * Compare Cobbler version as a float * Remove LooseVersion import
This commit is contained in:
parent
62492fe742
commit
6f11d75047
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/11045-check-cobbler-version.yml
Normal file
2
changelogs/fragments/11045-check-cobbler-version.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- cobbler_system - compare the version as a float which is the type returned by the Cobbler API (https://github.com/ansible-collections/community.general/issues/11044).
|
||||
Loading…
Add table
Add a link
Reference in a new issue