entity-manager: fix compile option to not persist
After a BMC reboot, this file may not exist when we try
to remove it. Just use the non throwing version.
Tested-by: Loading entity-manager onto nvl32-obmc and testing boot
after remove the file
Change-Id: Ia352753e5911b4502f7af1b106c919e5bddb6740
Signed-off-by: Marc Olberding <molberding@nvidia.com>
diff --git a/src/entity_manager/entity_manager.cpp b/src/entity_manager/entity_manager.cpp
index 1511662..22f9a6a 100644
--- a/src/entity_manager/entity_manager.cpp
+++ b/src/entity_manager/entity_manager.cpp
@@ -599,8 +599,9 @@
else
{
// not an error, just logging at this level to make it in the journal
+ std::error_code ec;
std::cerr << "Clearing previous configuration\n";
- std::filesystem::remove(currentConfiguration);
+ std::filesystem::remove(currentConfiguration, ec);
}
}