summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDamian Celico <damianx.celico@intel.com>2022-12-05 23:48:02 +0300
committerKiran Kumar Ballapalli <kirankumarb@ami.com>2023-04-12 15:32:09 +0300
commit2f2f64d2f6a2daf8a8b6c42d5e04e184d22642d5 (patch)
tree072e4072999db54a77171b7b95d88e16ca4d739a /src
parent8890db89299eb94726e3fdac66a3d43f10fd2bb0 (diff)
downloadwebui-vue-2f2f64d2f6a2daf8a8b6c42d5e04e184d22642d5.tar.xz
Fixed endpoint for Power PowerControl
Saving power cap value was throwing an error, and it was caused by incorrect endpoint to PowerControl resource in Redfish: https://redfish.dmtf.org/schemas/v1/Power.v1_7_1.json Fixed endpoint for saving Power Cap value Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: Ib9117f62548c55eb3f07562b71330675a2101924
Diffstat (limited to 'src')
-rw-r--r--src/store/modules/ResourceManagement/PowerControlStore.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/modules/ResourceManagement/PowerControlStore.js b/src/store/modules/ResourceManagement/PowerControlStore.js
index 94c570f8..366d3bd2 100644
--- a/src/store/modules/ResourceManagement/PowerControlStore.js
+++ b/src/store/modules/ResourceManagement/PowerControlStore.js
@@ -42,7 +42,7 @@ const PowerControlStore = {
.then((response) => {
const powerControl = response.data.PowerControl;
if (!powerControl || powerControl.length === 0) return;
- const powerCapUri = powerControl[0]['@odata.id'];
+ const powerCapUri = response.data['@odata.id'];
const powerCap = powerControl[0].PowerLimit.LimitInWatts;
// If system is powered off, power consumption does not exist in the PowerControl
const powerConsumption = powerControl[0].PowerConsumedWatts || null;