Fix bug 2142: Debug mode in Pebble Charms is not working
[osm/devops.git] / installers / charm / osm-nbi / src / charm.py
index 454b155..23ab054 100755 (executable)
@@ -113,7 +113,8 @@ class OsmNbiCharm(CharmBase):
             # Eventually it will become ready after the first pebble-ready event.
             check_container_ready(self.container)
 
-            self._configure_service(self.container)
+            if not self.debug_mode.started:
+                self._configure_service(self.container)
             self._update_ingress_config()
             self._update_nbi_relation()
             # Update charm status