fix(crud-web-apps/jupyter): dict variable reference for `node.status.capacity` (kubeflow/kubeflow#7485)

Signed-off-by: mishraprafful <mishraprafful@gmail.com>
This commit is contained in:
Prafful Mishra 2024-03-14 16:30:00 +01:00 committed by GitHub
parent 7eb0e637d9
commit a249b1c99e
1 changed files with 2 additions and 2 deletions

View File

@ -115,10 +115,10 @@ def get_gpu_vendors():
nodes = api.list_nodes().items
for node in nodes:
if node.status.capacity:
installed_resources.update(status.capacity.keys())
installed_resources.update(node.status.capacity.keys())
else:
log.debug(
"Capacity was not available for node {node.metadata.name}"
f"Capacity was not available for node {node.metadata.name}"
)
# Keep the vendors the key of which exists in at least one node