Helpers for comparing version strings.
New in version 1.6.
oslo_utils.versionutils.
convert_version_to_int
(version)¶Convert a version to an integer.
version must be a string with dots or a tuple of integers.
New in version 2.0.
oslo_utils.versionutils.
convert_version_to_str
(version_int)¶Convert a version integer to a string with dots.
New in version 2.0.
oslo_utils.versionutils.
convert_version_to_tuple
(version_str)¶Convert a version string with dots to a tuple.
New in version 2.0.
oslo_utils.versionutils.
is_compatible
(requested_version, current_version, same_major=True)¶Determine whether requested_version is satisfied by current_version; in other words, current_version is >= requested_version.
Parameters: |
|
---|---|
Returns: | True if compatible, False if not |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.