From 8d07328c91db24b877b0369ea51ab9889b536a51 Mon Sep 17 00:00:00 2001 From: Adrian Czarnecki Date: Thu, 25 Oct 2018 12:52:02 +0200 Subject: [PATCH] Replace @memoized_with_* with @memoized @memoized_with_* was removed in [1] [1] https://github.com/openstack/horizon/commit/123269dce72e0700feb7a7b294d245756df0ca93 Story: 2004175 Task: 27661 Change-Id: I39ff336b84448b231412a06e13aa876847453882 --- monitoring/api/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitoring/api/client.py b/monitoring/api/client.py index 79da6021..0d184d5f 100644 --- a/monitoring/api/client.py +++ b/monitoring/api/client.py @@ -78,8 +78,8 @@ def _get_to_verify(insecure, cacert): return to_verify -@memoized.memoized_with_request(_get_auth_params_from_request) -def monascaclient(request_auth_params, version=None): +@memoized.memoized +def monascaclient(request, version=None): ( user_domain_id, @@ -88,7 +88,7 @@ def monascaclient(request_auth_params, version=None): project_domain_id, monasca_url, auth_url - ) = request_auth_params + ) = _get_auth_params_from_request(request) # NOTE(trebskit) this is bit hacky, we should # go straight into using numbers as version representation