#NEWLINE# def fullversion( ) : #NEWLINE# #INDENT# "\n    Return server version (``apachectl -V``)\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' apache.fullversion\n    " #NEWLINE# cmd = '{0} -V' . format ( _detect_os ( ) ) #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ret [ 'compiled_with' ] = [ ] #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) #NEWLINE# define_re = re . compile ( '^\\s+-D\\s+' ) #NEWLINE# for line in out : #NEWLINE# #INDENT# if ( ': ' in line ) : #NEWLINE# #INDENT# comps = line . split ( ': ' ) #NEWLINE# if ( not comps ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ret [ comps [ 0 ] . strip ( ) . lower ( ) . replace ( ' ' , '_' ) ] = comps [ 1 ] . strip ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ' -D' in cmd ) : #NEWLINE# #INDENT# cwith = define_re . sub ( '' , line ) #NEWLINE# ret [ 'compiled_with' ] . append ( cwith ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ret