From 1aa1aaf9970921552d26445e726d6bb5548db809 Mon Sep 17 00:00:00 2001 From: Cristian Mondo Date: Thu, 20 Oct 2022 11:26:40 -0300 Subject: [PATCH] Horizon returns an error when admin edit CPU Assignments The error occurs due to a bad reference of utils module, which is being loaded from another path, instead of being imported from the directory where the utils module is located. Updated the path reference to load utils module properly. Closes-Bug: 1993662 Test Plan: - Edit CPU assignments on the controller that is locked. Signed-off-by: Cristian Mondo Change-Id: I294c254eed361b3d66156d706145ea45793dbe74 --- .../dashboards/admin/inventory/cpu_functions/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/cpu_functions/views.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/cpu_functions/views.py index 6011a791..066fcb9c 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/cpu_functions/views.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/cpu_functions/views.py @@ -8,7 +8,8 @@ import logging -import utils as icpu_utils +from starlingx_dashboard.dashboards.admin.inventory.cpu_functions \ + import utils as icpu_utils from django.urls import reverse from django.utils.translation import ugettext_lazy as _