Skip to content

Commit

Permalink
Correct Actions/Manager.ResetToDefaults parameter name
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Kostr authored and kirankumarb07 committed Mar 13, 2024
1 parent 2e6c7cc commit 5c2f61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/Operations/FactoryResetStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 5c2f61a

Please sign in to comment.