#NEWLINE# def get_enabled( ) : #NEWLINE# #INDENT# "\n    Return a list of service that are enabled on boot\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.get_enabled\n    " #NEWLINE# ret = set ( ) #NEWLINE# lines = __salt__ [ 'cmd.run' ] ( 'rc-update show' ) . splitlines ( ) #NEWLINE# for line in lines : #NEWLINE# #INDENT# if ( '|' not in line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( 'shutdown' in line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ret . add ( line . split ( '|' ) [ 0 ] . strip ( ) ) #NEWLINE# #UNINDENT# return sorted ( ret )