Skip to content
Snippets Groups Projects
Commit 29d6620b authored by Takumaru Sekine's avatar Takumaru Sekine Committed by Yas Naoi
Browse files

Issue #3245251 by sekinet, yas: Fix $cloud_context which is introduced as a...

Issue #3245251 by sekinet, yas: Fix $cloud_context which is introduced as a method parameter and overridden
parent 322b77dd
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class K8sNodeAllocatedResourcesChartController extends K8sCostsControllerBase {
// If cloud_context is passed, filter entities with it.
if (!empty($cloud_contexts)) {
foreach ($cloud_contexts ?: [] as $cloud_context) {
foreach ($cloud_contexts ?: [] as $cluster) {
$nodes = array_merge($nodes, isset($k8s_node)
? $this->entityTypeManager()->getStorage('k8s_node')
->loadByProperties([
......@@ -73,7 +73,7 @@ class K8sNodeAllocatedResourcesChartController extends K8sCostsControllerBase {
])
: $this->entityTypeManager()->getStorage('k8s_node')
->loadByProperties([
'cloud_context' => $cloud_context,
'cloud_context' => $cluster,
]));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment