RhospRelease - file /etc/rhosp-release

This module provides plugins access to file /etc/rhosp-release

Typical content of file /etc/rhosp-release is:

Red Hat OpenStack Platform release 14.0.0 RC (Rocky)

This module parses the file content and stores data in the dict self.release with keys product, version, and code_name.

Examples

>>> release.product
'Red Hat OpenStack Platform'
>>> release.version
'14.0.0'
>>> release.code_name
'Rocky'
class insights.parsers.rhosp_release.RhospRelease(context)[source]

Bases: Parser

Parses the content of file /etc/rhosp-release.

property code_name

Release code name.

Type

string

parse_content(content)[source]

This method must be implemented by classes based on this class.

property product

Product full name.

Type

string

property version

Version of RHOSP.

Type

string