maas/images/maas-region-controller/2.3_nat_fix.patch
Scott Hussey 8b29fb6bdf Fix for 2.3 metadata_url bug
This is a temporary workaround patch
to resolve https://bugs.launchpad.net/maas/+bug/1743005

- Update chart to point at patched image sthussey/maas-region:2.3_patch

Change-Id: I8c631da1b4b555523485d666cea22cb2dbaeff26
2018-01-29 09:55:58 -06:00

19 lines
834 B
Diff

diff --git a/src/maasserver/utils/__init__.py b/src/maasserver/utils/__init__.py
index 1c58859..f8e673d 100644
--- a/src/maasserver/utils/__init__.py
+++ b/src/maasserver/utils/__init__.py
@@ -66,8 +66,11 @@ def absolute_reverse(
if not base_url:
with RegionConfiguration.open() as config:
base_url = config.maas_url
- if default_region_ip is not None:
- base_url = compose_URL(base_url, default_region_ip)
+ # NOTE(sh8121att)
+ # Commenting out as workaround to
+ # https://bugs.launchpad.net/maas/+bug/1743005
+ #if default_region_ip is not None:
+ # base_url = compose_URL(base_url, default_region_ip)
url = urljoin(base_url, reverse(view_name, *args, **kwargs))
if query is not None:
url += '?%s' % urlencode(query, doseq=True)