Subscription manager release commands

Shared parser for parsing output of the subscription-manager release commands.

SubscriptionManagerReleaseShow - command subscription-manager release --show

class insights.parsers.subscription_manager_release.SubscriptionManagerReleaseShow(*args, **kwargs)[source]

Bases: CommandParser

Warning

This class is deprecated and will be removed from 3.6.0. Please use the insights.parsers.rhsm_releasever.RhsmReleaseVer instead.

Class for parsing the output of subscription-manager release --show command.

Typical output of the command is:

Release: 7.2
set

the set release.

Type:

str

major

the major version of the set release.

Type:

int

minor

the minor version of the set release.

Type:

int

Examples

>>> type(rhsm_rel)
<class 'insights.parsers.subscription_manager_release.SubscriptionManagerReleaseShow'>
>>> rhsm_rel.set
'7.2'
>>> rhsm_rel.major
7
>>> rhsm_rel.minor
2
parse_content(content)[source]

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