diff options
Diffstat (limited to 'newton')
-rw-r--r-- | newton/newton/proxy/urls.py | 2 | ||||
-rw-r--r-- | newton/newton/requests/views/util.py | 2 | ||||
-rw-r--r-- | newton/newton/urls.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/newton/newton/proxy/urls.py b/newton/newton/proxy/urls.py index ae63c052..f9584635 100644 --- a/newton/newton/proxy/urls.py +++ b/newton/newton/proxy/urls.py @@ -25,7 +25,7 @@ urlpatterns = [ identityV3.Tokens.as_view()), url(r'^identity/(?:v2.0/|)tenants$', services.GetTenants.as_view()), - url(r'^(?P<servicetype>[0-9a-zA-Z_-]+)/(?P<requri>[0-9a-zA-Z./_-]*)$', + url(r'^(?P<servicetype>[0-9a-zA-Z_-]{,18})/(?P<requri>[0-9a-zA-Z./_-]*)$', services.Services.as_view()), ] diff --git a/newton/newton/requests/views/util.py b/newton/newton/requests/views/util.py index f2c62896..a65ec3ee 100644 --- a/newton/newton/requests/views/util.py +++ b/newton/newton/requests/views/util.py @@ -70,11 +70,13 @@ class VimDriverUtils(object): auth = keystone_v3.Password(auth_url=vim["url"], username=vim["userName"], password=vim["password"], + user_domain_name=vim["domain"], project_id=tenantid) elif '/identity' in vim["url"]: auth = keystone_v3.Password(auth_url=vim["url"]+"/v3", username=vim["userName"], password=vim["password"], + user_domain_name=vim["domain"], project_id=tenantid) elif tenant_name: if '/v2' in vim["url"]: diff --git a/newton/newton/urls.py b/newton/newton/urls.py index 3c740a06..77ec5ab0 100644 --- a/newton/newton/urls.py +++ b/newton/newton/urls.py @@ -28,7 +28,7 @@ urlpatterns = [ url(r'^api/multicloud-newton/v0/(?P<vimid>[0-9a-zA-Z_-]+)/tenants$', tenants.Tenants.as_view()), url(r'^api/multicloud-newton/v0/(?P<vimid>[0-9a-zA-Z_-]+)/' - '(?P<tenantid>[0-9a-zA-Z_-]{8,})/', include('newton.requests.urls')), + '(?P<tenantid>[0-9a-zA-Z_-]{20,})/', include('newton.requests.urls')), ] |