def servermods():
 cmd = '{0} -l'.format(_detect_os())
 ret = []
 out = __salt__['cmd.run'](cmd).splitlines()
 for line in out:
  if (not line):
   continue
  if ('.c' in line):
   ret.append(line.strip())
 return ret

def servermods ( ) : cmd = '{0} -l' . format ( _detect_os ( ) ) ret = [ ] out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) for line in out : if ( not line ) : continue if ( '.c' in line ) : ret . append ( line . strip ( ) ) return ret
return list of modules compiled into the server cli example: .