VersionInfo - file version_info
¶
Warning
This parser is deprecated, please use
insights.parsers.client_metadata.VersionInfo
instead.
The version of the insights core and insights client that the archive used.
-
class
insights.parsers.version_info.
VersionInfo
(*args, **kwargs)[source]¶ Bases:
insights.core.JSONParser
Warning
This parser is deprecated, please use
insights.parsers.client_metadata.VersionInfo
instead.This parser parses the
version_info
file generated by theinsights-client
command.Typical content of this file is:
{"core_version": "3.0.203-1", "client_version": "3.1.1"}
Note
The
client_version
provided by this Parser is a short version only, to get the full version of theinsights-client
package, please use theinsights.parsers.installed_rpms.InstalledRpms
Parser instead.Examples
>>> ver.core_version == '3.0.203-1' True >>> ver.client_version == '3.1.1' True
-
client_version
¶ The version of the insights client.
Note
This attribute returns a short version of the insights client only, to get the full version of the
insights-client
package, please use theinsights.parsers.installed_rpms.InstalledRpms
Parser instead.Type: Returns Type: (str)
-
core_version
¶ The version of the insights core.
Type: Returns Type: (str)
-