SystemctlGetDefault - command systemctl get-default

Parser to parse the output of command systemctl get-default

class insights.parsers.systemctl_get_default.SystemctlGetDefault(context, extra_bad_lines=None)[source]

Bases: CommandParser

Class for parsing systemctl get-default command output.

Sample output for command:

graphical.target

Examples

>>> type(systemctl_get_default)
<class 'insights.parsers.systemctl_get_default.SystemctlGetDefault'>
>>> systemctl_get_default.default_target
'graphical.target'
default_target

The default target

Type:

String

Raises:

SkipComponent -- When nothing needs to parse

parse_content(content)[source]

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