Fix bug 2142: Debug mode in Pebble Charms is not working
[osm/devops.git] / installers / charm / osm-pol / src / charm.py
index 1c66157..2749ddb 100755 (executable)
@@ -90,7 +90,8 @@ class OsmPolCharm(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)
             # Update charm status
             self._on_update_status()
         except CharmError as e: