#NEWLINE# def servermods( ) : #NEWLINE# #INDENT# "\n    Return list of modules compiled into the server (``apachectl -l``)\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' apache.servermods\n    " #NEWLINE# cmd = '{0} -l' . format ( _detect_os ( ) ) #NEWLINE# ret = [ ] #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) #NEWLINE# for line in out : #NEWLINE# #INDENT# if ( not line ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( '.c' in line ) : #NEWLINE# #INDENT# ret . append ( line . strip ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ret