LocaleCtlStatus - command localectl status

Parser the output of localectl status command.

class insights.parsers.localectl.LocaleCtlStatus(context, extra_bad_lines=None)[source]

Bases: CommandParser, dict

Reads the output of localectl status command

Example output:

System Locale: LANG=en_US.UTF-8
    VC Keymap: us
   X11 Layout: us
Examples::
>>> type(localectl_status)
<class 'insights.parsers.localectl.LocaleCtlStatus'>
>>> localectl_status['System Locale'] == 'LANG=en_US.UTF-8'
True
>>> localectl_status['VC Keymap'] == 'us'
True
>>> localectl_status['X11 Layout'] == 'us'
True
parse_content(content)[source]

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