From 187b13f6d995c9af5a237f8c1bb8193c97646066 Mon Sep 17 00:00:00 2001 From: Ricardo Alvim Date: Wed, 14 Jul 2021 16:13:47 -0300 Subject: [PATCH] py3: remove dict.keys() dict.keys() is not necessary in this case Validated with tox. Story: 2008454 Task: 42832 Change-Id: I4132610a8ac201e57e3fd0324c9dbd869a0f19df Signed-off-by: Ricardo Alvim --- distributedcloud-client/dcmanagerclient/api/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributedcloud-client/dcmanagerclient/api/base.py b/distributedcloud-client/dcmanagerclient/api/base.py index d00844d..37689f9 100644 --- a/distributedcloud-client/dcmanagerclient/api/base.py +++ b/distributedcloud-client/dcmanagerclient/api/base.py @@ -78,7 +78,7 @@ class ResourceManager(object): json_objects = [json_response_key[item] for item in json_response_key] resource = [] for json_object in json_objects: - data = json_object.get('usage').keys() + data = json_object.get('usage') for values in data: resource.append( self.resource_class( # pylint: disable=not-callable