VersionInfo - file version_info

The version of the insights core and insights client that the archive used.

class insights.parsers.version_info.VersionInfo(context)[source]

Bases: insights.core.JSONParser

This parser parses the version_info file generated by the insights-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 the insights-client package, please use the insights.parsers.installed_rpms.InstalledRpms Parser instead.

Examples

>>> ver.core_version == '3.0.203-1'
True
>>> ver.client_version == '3.1.1'
True
property client_version
Returns

The version of the insights client.

Return type

(str)

Note

This attribute returns a short version of the insights client only, to get the full version of the insights-client package, please use the insights.parsers.installed_rpms.InstalledRpms Parser instead.

property core_version

Returns: (str): The version of the insights core.