DuplicateMachine - file insights-commands/duplidate_machine_id
- class insights.parsers.machine_id.DuplicateMachine(context)[source]
Bases:
Parser
Parse the machine info in the file “insights-commands/duplidate_machine_info”.
Sample input:
dc194312-8cdd-4e75-8cf1-2094bf666f45 hostname1,hostname2
- duplicate_id
the duplicate machine id
- Type:
str
- hostnames
A list of the hostnames with the same machine id
- Type:
list
Examples
>>> type(machine_id_obj) <class 'insights.parsers.machine_id.DuplicateMachine'> >>> machine_id_obj.duplicate_id 'dc194312-8cdd-4e75-8cf1-2094bf666f45' >>> machine_id_obj.hostnames ['hostname1', 'hostname2']
- Raises:
SkipComponent -- when there is no expected content in the file