EtcMachineId - file /etc/machine-id

class insights.parsers.etc_machine_id.EtcMachineId(context)[source]

Bases: Parser

Class for parsing the file /etc/machine-id

Sample file content:

4f3fbfda59ff4aea969255a73342d439

Examples

>>> type(machine_id)
<class 'insights.parsers.etc_machine_id.EtcMachineId'>
>>> machine_id.machine_id
'4f3fbfda59ff4aea969255a73342d439'
parse_content(content)[source]

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