db.enableFreeMonitoring returns null on success, which is printed to shell console

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 4.0.0-rc5
    • Component/s: Shell
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Both of the successful cases in db.enableFreeMonitoring appear to return null, which ends up printing "null" to the shell console. Consider:

      rs:PRIMARY> db.enableFreeMonitoring()
      Successfully initiated free monitoring. The registration is proceeding in the background. 
      Run db.getFreeMonitoringStatus() at any time to check on the progress.
      null
      

      Could this be avoided by simply using a value-less return statement?

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: