diff options
Diffstat (limited to 'src/mailman/commands')
| -rw-r--r-- | src/mailman/commands/cli_info.py | 4 | ||||
| -rw-r--r-- | src/mailman/commands/docs/info.rst | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/commands/cli_info.py b/src/mailman/commands/cli_info.py index 4dcfb43af..beda10657 100644 --- a/src/mailman/commands/cli_info.py +++ b/src/mailman/commands/cli_info.py @@ -68,7 +68,9 @@ class Info: print('devmode:', 'ENABLED' if as_boolean(config.devmode.enabled) else 'DISABLED', file=output) - print('REST root url:', path_to('/'), file=output) + print('REST root url:', + path_to('/', config.webservice.api_version), + file=output) print('REST credentials: {0}:{1}'.format( config.webservice.admin_user, config.webservice.admin_pass), file=output) diff --git a/src/mailman/commands/docs/info.rst b/src/mailman/commands/docs/info.rst index 6ce223403..407b9eacc 100644 --- a/src/mailman/commands/docs/info.rst +++ b/src/mailman/commands/docs/info.rst @@ -20,7 +20,7 @@ script ``mailman info``. By default, the info is printed to standard output. ... config file: .../test.cfg db url: ... - REST root url: http://localhost:9001/3.0/ + REST root url: http://localhost:9001/3.1/ REST credentials: restadmin:restpass By passing in the ``-o/--output`` option, you can print the info to a file. @@ -38,7 +38,7 @@ By passing in the ``-o/--output`` option, you can print the info to a file. config file: .../test.cfg db url: ... devmode: DISABLED - REST root url: http://localhost:9001/3.0/ + REST root url: http://localhost:9001/3.1/ REST credentials: restadmin:restpass You can also get more verbose information, which contains a list of the file |
