Leapp
Parsers for parsing output of the
insights.specs.datasources.leapp.leapp_report
datasource.
LeappMigrationResults - based on /etc/migration-results
LeappReport - based on /var/log/leapp/leapp-report.json
- class insights.parsers.leapp.LeappMigrationResults(context)[source]
Bases:
Parser
,list
Class for parsing the
insights.specs.datasources.leapp.migration_results
datasource.Examples
>>> type(leapp_migration_results) <class 'insights.parsers.leapp.LeappMigrationResults'> >>> len(leapp_migration_results) 2 >>> leapp_migration_results[0]['run_id'] == '1edff870-626d-41ba-854c-8f9dc8f20dc3' True
- class insights.parsers.leapp.LeappReport(context)[source]
Bases:
Parser
,list
Class for parsing the
insights.specs.datasources.leapp.leapp_report
datasource.Examples
>>> type(leapp_report) <class 'insights.parsers.leapp.LeappReport'> >>> 'inhibitor' in leapp_report[0]['groups'] True >>> "Use of NFS detected. " in leapp_report[0]['title'] True