From: Robert Varga Date: Tue, 31 Oct 2017 16:56:13 +0000 (+0100) Subject: Fix karaf restart instruction X-Git-Tag: release/oxygen~61 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=4b05877e89b49c73ea2af2d426a570f66c73418d 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 --- 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(); }); } }