Fix bug 2142: Debug mode in Pebble Charms is not working
[osm/devops.git] / installers / charm / osm-lcm / src / charm.py
index 8c8c6e1..4a362a6 100755 (executable)
@@ -102,7 +102,8 @@ class OsmLcmCharm(CharmBase):
             # Check if the container is ready.
             # 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)
 
             # Update charm status
             self._on_update_status()