From d62a4e6062f657a63a85a89d044de7dd5b3943d4 Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Fri, 13 Aug 2021 16:46:28 +0200 Subject: [PATCH] Fix key generation for caching With a new major version of decorate, the list of args may be non-empty for the first time, exposing some issue in our handling. Ignore them for now in order to unblock gating. Task: 43007 Change-Id: Ia4e71a5ab02516a8ef40a94590b5c9092eab5fa5 (cherry picked from commit d0d4d8bc64da62dc8338e307b4f736cd0b1f5f49) --- openstack/cloud/openstackcloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack/cloud/openstackcloud.py b/openstack/cloud/openstackcloud.py index eabbbd276..0ec581ce6 100755 --- a/openstack/cloud/openstackcloud.py +++ b/openstack/cloud/openstackcloud.py @@ -331,7 +331,8 @@ class _OpenStackCloudMixin: name_key = '%s:%s' % (self.name, namespace) def generate_key(*args, **kwargs): - arg_key = ','.join(args) + # TODO(frickler): make handling arg keys actually work + arg_key = '' kw_keys = sorted(kwargs.keys()) kwargs_key = ','.join( ['%s:%s' % (k, kwargs[k]) for k in kw_keys if k != 'cache'])