CloudInit

Parsers related to “cloud-init” can be placed in this module.

CloudInitQuery - cmd cloud-init query -f ‘{{ cloud_name, platform }}’

class insights.parsers.cloud_init.CloudInitQuery(context, extra_bad_lines=None)[source]

Bases: CommandParser

Parse the cloud-init query -f '{{ cloud_name, platform }}' output.

Sample input:

('azure', 'azure')

Examples

>>> cloud_query.cloud_name == 'azure'
True
>>> cloud_query.platform == 'azure'
True
parse_content(content)[source]

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