Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-6480

Documentation typo for MongoDB createUser example in conf-mongodb page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Story Points:
      0.5
    • Sprint:
      Platform Sprint 23

      Description

      https://www.percona.com/doc/percona-monitoring-and-management/conf-mongodb.html currently has one incorrect punctuation symbol causing this example to fail with a syntax error.

      db.getSiblingDB("admin").createUser({
         user: "mongodb_exporter",
         pwd: "s3cR#tpa$$worD",
         roles: [
            { role: "explainRole", db: "admin" ),
            { role: "clusterMonitor", db: "admin" },
            { role: "read", db: "local" }
         ]
      })
      

      The typo is that " { role: "explainRole", db: "admin" )," accidentally ends with a round bracket instead of a curly bracket.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              paul.jacobs Paul Jacobs
              Reporter:
              akira.kurogane Akira Kurogane
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour
                  1h