mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ipaclient/library/ipa_facts.py: Fix version_info for new pre versions
With 4.6.90 pre versions have been introduced. The version parsing in ipa_facts broke with this as it did not know about pre versions so far.
This commit is contained in:
@@ -113,7 +113,8 @@ def get_ipa_version():
|
||||
# DEV versions look like:
|
||||
# 4.4.90.201610191151GITd852c00
|
||||
# 4.4.90.dev201701071308+git2e43db1
|
||||
if part.startswith('dev') or 'GIT' in part:
|
||||
# 4.6.90.pre2
|
||||
if part.startswith('dev') or part.startswith('pre') or 'GIT' in part:
|
||||
version_info.append(part)
|
||||
else:
|
||||
version_info.append(int(part))
|
||||
|
||||
Reference in New Issue
Block a user