summaryrefslogtreecommitdiffstats
path: root/activation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'activation.cpp')
-rw-r--r--activation.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/activation.cpp b/activation.cpp
index a938b8b..73acc3d 100644
--- a/activation.cpp
+++ b/activation.cpp
@@ -205,9 +205,11 @@ void Activation::deleteImageManagerObject()
auto method = this->bus.new_method_call(VERSION_BUSNAME, path.c_str(),
"xyz.openbmc_project.Object.Delete",
"Delete");
- auto mapperResponseMsg = bus.call(method);
- // Check that the bus call didn't result in an error
- if (mapperResponseMsg.is_method_error())
+ try
+ {
+ bus.call_noreply(method);
+ }
+ catch (const SdBusError& e)
{
log<level::ERR>("Error in Deleting image from image manager",
entry("VERSIONPATH=%s", path.c_str()));
OpenPOWER on IntegriCloud