Replace @memoized_with_* with @memoized

@memoized_with_* was removed in [1]

[1] 123269dce7

Story: 2004175
Task: 27661
Change-Id: I39ff336b84448b231412a06e13aa876847453882
This commit is contained in:
Adrian Czarnecki 2018-10-25 12:52:02 +02:00
parent f137d1d926
commit 8d07328c91
1 changed files with 3 additions and 3 deletions

View File

@ -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