AuthSelectCurrent - command authselect current

class insights.parsers.authselect.AuthSelectCurrent(context, extra_bad_lines=None)[source]

Bases: CommandParser

Class to parse the output of command “authselect current”.

Sample output of command authselect current:

Profile ID: sssd
Enabled features:
- with-sudo
- with-mkhomedir
- with-smartcard
profile_id

The enabled profile ID

Type:

str

enabled_features

List of enabled features

Type:

list

Examples

>>> asc.profile_id
'sssd'
>>> len(asc.enabled_features)
3
>>> 'with-sudo' in asc.enabled_features
True
parse_content(content)[source]

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