oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.3k stars 739 forks source link

check commands structure with None values #4451

Closed vladak closed 8 months ago

vladak commented 8 months ago

Even though it seems the following is a valid YAML:

commands:
- command:
  call:
    uri: 'http://localhost:8080/api/v1/messages'
    method: POST
    data:
      messageLevel: warning
      duration: PT1H
      tags: ['%PROJECT%']
      text: reindex in progress

is parsed into invalid opengrok-sync configuration, with command having None value. This change catches this.

Inspired by https://github.com/oracle/opengrok/discussions/4449