From 5c2f61a545b2460ce7eee4105e9c79c91de41da8 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Thu, 7 Mar 2024 12:55:35 +0300 Subject: Correct Actions/Manager.ResetToDefaults parameter name According to the Redfish Data Model specification the correct parameter name for the '/Actions/Manager.ResetToDefaults' action is not 'ResetToDefaults' but 'ResetType'. Change parameter name to match with the specification. Tested: Reset operation still works as expected. Change-Id: I111001800bb812ccb32f51f78f2e02c5f4d10e7c Signed-off-by: Konstantin Aladyshev --- src/store/modules/Operations/FactoryResetStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/Operations/FactoryResetStore.js b/src/store/modules/Operations/FactoryResetStore.js index 83bddeb0..395cae19 100644 --- a/src/store/modules/Operations/FactoryResetStore.js +++ b/src/store/modules/Operations/FactoryResetStore.js @@ -7,7 +7,7 @@ const FactoryResetStore = { async resetToDefaults() { return await api .post('/redfish/v1/Managers/bmc/Actions/Manager.ResetToDefaults', { - ResetToDefaultsType: 'ResetAll', + ResetType: 'ResetAll', }) .then(() => i18n.t('pageFactoryReset.toast.resetToDefaultsSuccess')) .catch((error) => { -- cgit v1.2.3