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 <Ricardo.AlvimNetto@windriver.com>
This commit is contained in:
Ricardo Alvim 2021-07-14 16:13:47 -03:00
parent 0d0781278f
commit 187b13f6d9
1 changed files with 1 additions and 1 deletions

View File

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