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:
parent
7eb0e637d9
commit
a249b1c99e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue