Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-1111

evg_example_config.yml - update yml database config to match config.go

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v3
    • Component/s: None
    • Labels:
      None

      Description

      I received an error using the evg_example_config.yml on a local Evergreen instance, based on a mismatch between config.go expected format and the example config's format:

      Error reading config file: DBUrl and DB must not be empty
      

      To fix, update the following:

      dburl: "mongodb://localhost:27017"
      db: "evg"
      

      with

      database:
          url: "mongodb://localhost:27017"
          db: "evg"
      

      in order to work with the config Settings struct: https://github.com/evergreen-ci/evergreen/blob/master/config.go#L202

        Attachments

          Activity

            People

            Assignee:
            backlog-server-tools Backlog - Server Tools Team
            Reporter:
            justin.cohler Justin Cohler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: