# 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()
# 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()
except CharmError as e:
{
"folders": [
- {"path": "/usr/lib/python3/dist-packages/osm_nbi"},
- {"path": "/usr/lib/python3/dist-packages/osm_common"},
- {"path": "/usr/lib/python3/dist-packages/osm_im"},
+ {
+ "path": "/usr/lib/python3/dist-packages/osm_nbi"
+ },
+ {
+ "path": "/usr/lib/python3/dist-packages/osm_common"
+ },
+ {
+ "path": "/usr/lib/python3/dist-packages/osm_im"
+ },
],
"settings": {},
"launch": {
"type": "python",
"request": "launch",
"module": "osm_nbi.nbi",
- "justMyCode": False,
+ "justMyCode": false,
}
]
}
# 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
# 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:
check_container_ready(self.container)
self._configure_certificates()
- self._configure_service()
+ if not self.debug_mode.started:
+ self._configure_service()
self._update_ro_relation()
# Update charm status