Merge lp:~jtv/maas/bug-1049407 into lp:~maas-committers/maas/trunk

Proposed by Jeroen T. Vermeulen
Status: Merged
Approved by: Jeroen T. Vermeulen
Approved revision: no longer in the source branch.
Merged at revision: 987
Proposed branch: lp:~jtv/maas/bug-1049407
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 29 lines (+4/-4)
2 files modified
contrib/maas_local_settings.py (+2/-2)
src/maas/settings.py (+2/-2)
To merge this branch: bzr merge lp:~jtv/maas/bug-1049407
Reviewer Review Type Date Requested Status
John A Meinel (community) Approve
Review via email: mp+123891@code.launchpad.net

Commit message

Document DEFAULT_MAAS_URL as facing the MAAS (rather than the user's browser).

The only place we found where we use DEFAULT_MAAS_URL as an “outward”-facing address is where the packaging tells the user where the UI is. After that, it's purely for helping the various systems in the MAAS find the central server. This led to a bug report that turned out to be due to the system not being configured properly. There were no changes to make, but I found some comments that could be clearer.

Description of the change

Pre-imped with Julian.

Jeroen

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

This change is only comment fixes. Is there an actual code change?

Revision history for this message
John A Meinel (jameinel) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'contrib/maas_local_settings.py'
--- contrib/maas_local_settings.py 2012-08-16 08:24:49 +0000
+++ contrib/maas_local_settings.py 2012-09-12 07:05:20 +0000
@@ -2,8 +2,8 @@
2DEBUG = False2DEBUG = False
33
4# Default URL specifying protocol, host, and (if necessary) port where4# Default URL specifying protocol, host, and (if necessary) port where
5# this MAAS can be found. Configuration can, and probably should,5# systems in this MAAS can find the MAAS server. Configuration can, and
6# override this.6# probably should, override this.
7DEFAULT_MAAS_URL = "http://maas.internal.example.com/"7DEFAULT_MAAS_URL = "http://maas.internal.example.com/"
88
9# Absolute path to the directory static files should be collected to.9# Absolute path to the directory static files should be collected to.
1010
=== modified file 'src/maas/settings.py'
--- src/maas/settings.py 2012-08-21 17:21:03 +0000
+++ src/maas/settings.py 2012-09-12 07:05:20 +0000
@@ -60,8 +60,8 @@
60LONGPOLL_PATH = '/longpoll/'60LONGPOLL_PATH = '/longpoll/'
6161
62# Default URL specifying protocol, host, and (if necessary) port where62# Default URL specifying protocol, host, and (if necessary) port where
63# this MAAS can be found. Configuration can, and probably should,63# systems in this MAAS can find the MAAS server. Configuration can, and
64# override this.64# probably should, override this.
65DEFAULT_MAAS_URL = "http://%s/" % guess_server_address()65DEFAULT_MAAS_URL = "http://%s/" % guess_server_address()
6666
67if FORCE_SCRIPT_NAME is not None:67if FORCE_SCRIPT_NAME is not None: