From 4b05877e89b49c73ea2af2d426a570f66c73418d Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 31 Oct 2017 17:56:13 +0100 Subject: [PATCH] Fix karaf restart instruction We accidentally dropped a 0 in getBundle() -- we need to stop the system bundle, not the CDS bundle. Change-Id: Idbaa59aa39c2863ec76859b2ffa448b50890fd55 Signed-off-by: Robert Varga --- .../impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java index 348241d358..3917c5ee5a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java @@ -21,7 +21,7 @@ public class QuarantinedMonitorActorPropsFactory { // restart the entire karaf container LOG.warn("Restarting karaf container"); System.setProperty("karaf.restart.jvm", "true"); - bundleContext.getBundle().stop(); + bundleContext.getBundle(0).stop(); }); } } -- 2.36.6