Clear cpuInfoMap on platform config discovery

UniqueIdentifier D-Bus interface from cpuInfo (struct) was not
getting removed from dbus on platform configuration discovery.

Later as CPUInfo object gets reconstructed for same UniqueIdentifier interface throws exception since interface is still there followed shortly by a crash:

 terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'
    what():  sd_bus_add_object_vtable: org.freedesktop.DBus.Error.FileExists: File exists

With this change in place, cpuinfoapp runs smoothly across a host reboot/entity-manager restart.

Change-Id: I470afd3d7cba4285470e7bdf66b617a18c8bfbf1
Signed-off-by: Ankita Vilas Gawade <ankita.gawade@intel.com>
1 file changed