diff options
author | Cheng C Yang <cheng.c.yang@intel.com> | 2019-07-25 20:30:55 +0300 |
---|---|---|
committer | Cheng C Yang <cheng.c.yang@intel.com> | 2019-07-25 20:34:11 +0300 |
commit | 03083f1cfc85796d8e55ff5885ee579bece7c5f7 (patch) | |
tree | 4948794a959f43614bfcf2e1fcbc757d05d4eb82 /services | |
parent | 1cfdbe614f53ee0dc01a2a5e17ce1f873f1933bd (diff) | |
download | provingground-03083f1cfc85796d8e55ff5885ee579bece7c5f7.tar.xz |
Fix UUID Disappear Issue
UUID in D-Bus interface in SMBIOS MDR V2 will disappear after DC cycle, fix the
issue.
Tested:
Check redfish interface https://ip/redfish/v1/Systems/system
UUID shows like "UUID": "ffffffff-ffff-ffffffff-ffffffffffff"
Then do a DC cycle, after DC cycle, the UUID in redfish interface is still
"UUID": "ffffffff-ffff-ffffffff-ffffffffffff"
Change-Id: I9437a9300f200bf7741a4d4a67180aa28d649332
Signed-off-by: Cheng C Yang <cheng.c.yang@intel.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/smbios-mdrv2/src/mdrv2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/smbios-mdrv2/src/mdrv2.cpp b/services/smbios-mdrv2/src/mdrv2.cpp index 1a2fbcb..2aa09d8 100644 --- a/services/smbios-mdrv2/src/mdrv2.cpp +++ b/services/smbios-mdrv2/src/mdrv2.cpp @@ -397,6 +397,7 @@ void MDR_V2::systemInfoUpdate() bus, path, index, smbiosDir.dir[smbiosDirIndex].dataStorage)); } + system.reset(); system = std::make_unique<System>( bus, systemPath, smbiosDir.dir[smbiosDirIndex].dataStorage); } |