Fix karaf restart instruction 71/64971/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 31 Oct 2017 16:56:13 +0000 (17:56 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 31 Oct 2017 16:58:20 +0000 (17:58 +0100)
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 <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/config/yang/config/actor_system_provider/impl/factory/osgi/QuarantinedMonitorActorPropsFactory.java

index 348241d358eac29680796e037eb69b4327d9ffac..3917c5ee5a86c8031d12b0e43c3123d66d9c6eee 100644 (file)
@@ -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();
         });
     }
 }