summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/GlobalStore.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js
index 95d7a083..49283b03 100644
--- a/src/store/modules/GlobalStore.js
+++ b/src/store/modules/GlobalStore.js
@@ -95,8 +95,19 @@ const GlobalStore = {
Status: { State } = {},
},
} = {}) => {
- commit('setAssetTag', AssetTag);
- commit('setSerialNumber', SerialNumber);
+ /*
+ Trim AssetTag and SerialNumber
+ */
+ var s, tag, srn;
+
+ s = AssetTag;
+ tag = s.replace(/\./g, ' ').trim();
+
+ s = SerialNumber;
+ srn = s.replace(/\./g, ' ').trim();
+
+ commit('setAssetTag', tag);
+ commit('setSerialNumber', srn);
commit('setModelType', Model);
if (State === 'Quiesced' || State === 'InTest') {
// OpenBMC's host state interface is mapped to 2 Redfish