diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-12-17 03:06:39 +0000 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2019-12-17 03:06:39 +0000 |
commit | 34c5c84a17dee7a821eb1f3b18eadb0598150cdf (patch) | |
tree | 35fc2370d24ffdb87359113097f58ebcf3e01e55 /share/newton_base/registration/registration.py | |
parent | 01fce901541f9cc1cd79482ad5f54fc3c3b10256 (diff) |
Bypass cache for LCM of cloud region
Cache only the resource uri without query string.
Bypass the cache for LCM of a cloud region,which enhance the resilience
in case mismatch between AAI and cache
Change-Id: I57fd7981753d5959757401cea69f6fabd1874e25
Issue-ID: MULTICLOUD-968
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'share/newton_base/registration/registration.py')
-rw-r--r-- | share/newton_base/registration/registration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py index 9bcf90de..cdeebbc4 100644 --- a/share/newton_base/registration/registration.py +++ b/share/newton_base/registration/registration.py @@ -282,7 +282,7 @@ class RegistryHelper(MultiCloudAAIHelper): # get cloud-region retcode, content, status_code = \ - restcall.req_to_aai(resource_url, "GET") + restcall.req_to_aai(resource_url, "GET", nocache=True) # add resource-version cloudregiondata = {} @@ -1412,7 +1412,7 @@ class RegistryHelper(MultiCloudAAIHelper): # get cloud-region retcode, content, status_code = \ - restcall.req_to_aai(resource_url, "GET") + restcall.req_to_aai(resource_url, "GET", nocache=True) # add resource-version to url if retcode == 0 and content: @@ -1515,7 +1515,7 @@ class RegistryHelper(MultiCloudAAIHelper): # get cloud-region retcode, content, status_code = \ - restcall.req_to_aai(resource_url, "GET") + restcall.req_to_aai(resource_url, "GET", nocache=True) # add resource-version to url if retcode == 0 and content: |