summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2024-03-07 12:55:35 +0300
committerKiran Kumar Ballapalli <kirankumarb@ami.com>2024-03-13 07:12:06 +0300
commit5c2f61a545b2460ce7eee4105e9c79c91de41da8 (patch)
tree3a3a8a17c7a1b07af6ecb081a002cc72fc5dd2bf
parent2e6c7cc4b0737c53eccbcc83e766ee2a642dc952 (diff)
downloadwebui-vue-5c2f61a545b2460ce7eee4105e9c79c91de41da8.tar.xz
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 <aladyshev22@gmail.com>
-rw-r--r--src/store/modules/Operations/FactoryResetStore.js2
1 files changed, 1 insertions, 1 deletions
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) => {