def query_log_status(module, le_path, path, state='present'):
 if (state == 'present'):
  (rc, out, err) = module.run_command(('%s followed %s' % (le_path, path)))
  if (rc == 0):
   return True
  return False

def query_log_status ( module , le_path , path , state = 'present' ) : if ( state == 'present' ) : ( rc , out , err ) = module . run_command ( ( '%s followed %s' % ( le_path , path ) ) ) if ( rc == 0 ) : return True return False
returns whether a log is followed or not .