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(context, extra_bad_lines=None)[source]¶
Bases:
CommandParser
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