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'
>>> machine_id.uuid
'4f3fbfda-59ff-4aea-9692-55a73342d439'
parse_content(content)[source]

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