diff options
author | Sean Zhang <xiazhang@nvidia.com> | 2024-06-15 08:42:41 +0300 |
---|---|---|
committer | Gunnar Mills <gunnar@gmills.xyz> | 2024-06-25 18:45:07 +0300 |
commit | 8841b7d463a5272a87faaa14cb103f778a772770 (patch) | |
tree | 731d8c82ddb76c1c9358c36d707747b09c5189cd /src/store/modules/Operations/KeyClearStore.js | |
parent | ccb71f0bd6b91b4344cf9a776a433528a5771217 (diff) | |
download | webui-vue-8841b7d463a5272a87faaa14cb103f778a772770.tar.xz |
Replace fixed paths with response from API
Currently, the Redfish request used fixed URIs, modify the code to use
the BMC and System paths got from response of API calls.
For CertificateStore, since it was using the URL for constant variable
assignment, changed the constant CERTIFICATE_TYPES to method call.
Change-Id: I330b7272083e3e6993aae5705aae170b8e9a4659
Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
Diffstat (limited to 'src/store/modules/Operations/KeyClearStore.js')
-rw-r--r-- | src/store/modules/Operations/KeyClearStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/modules/Operations/KeyClearStore.js b/src/store/modules/Operations/KeyClearStore.js index 78804e75..9e5e875e 100644 --- a/src/store/modules/Operations/KeyClearStore.js +++ b/src/store/modules/Operations/KeyClearStore.js @@ -10,7 +10,7 @@ const KeyClearStore = { }; return await api .patch( - '/redfish/v1/Systems/system/Bios/Settings', + `${await this.dispatch('global/getSystemPath')}/Bios/Settings`, selectedKeyForClearing, ) .then(() => i18n.t('pageKeyClear.toast.selectedKeyClearedSuccess')) |