RearLocalConf - File /etc/rear/local.conf

class insights.parsers.rear_conf.RearLocalConf(context)[source]

Bases: TextFileOutput

Parses content of “/etc/rear/local.conf”.

Typical content of “/etc/rear/local.conf” is:

BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )

Examples

>>> type(local_conf)
<class 'insights.parsers.rear_conf.RearLocalConf'>
>>> local_conf.lines[0] == 'BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )'
True
parse_content(content)[source]

Use all the defined scanners to search the log file, setting the properties defined in the scanner.