CronDailyRhsmd - file /etc/cron.daily/rhsmd

class insights.parsers.cron_daily_rhsmd.CronDailyRhsmd(*args, **kwargs)[source]

Bases: Scannable

Parse the /etc/cron.daily/rhsmd file.

Sample input:

config=$(grep -E "^processTimeout" /etc/rhsm/rhsm.conf | grep -Po "[0-9]+")
rhsmd_timeout=$config
abc=$config

Note

Please refer to its super-class insights.core.Scannable for full usage.

Examples

>>> # CronDailyRhsmd.collect('config_lines', lambda n: n if "$config" in n else "")
>>> # CronDailyRhsmd.any('one_config_line', lambda n: n if "$config" in n else "")
>>> rhsmd.config_lines
['rhsmd_timeout=$config', 'abc=$config']
>>> rhsmd.one_config_line
'rhsmd_timeout=$config'