Sat5InsightsProperties - File redhat-access-insights.properties

class insights.parsers.sat5_insights_properties.Sat5InsightsProperties(context)[source]

Bases: LegacyItemAccess, Parser

Class to parse configuration file /etc/redhat-access/redhat-access-insights.properties on Satellite 5 Server.

The typical content is:

portalurl = https://cert-api.access.redhat.com/r/insights
enabled = true
debug = true
rpmname = redhat-access-insights

Examples

>>> insights_props.enabled
True
>>> insights_props['debug']
'true'
>>> insights_props['rpmname']
'redhat-access-insights'
enabled

True when insights is enabled on the Satellite 5. Otherwise, False

Type

bool

Raises

SkipException -- When file content is empty.

parse_content(content)[source]

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