Change-Id: Icca7e2b3a38b0c9ca4859138931e2c92566fd1d9
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
# Check if the container is ready.
# Eventually it will become ready after the first pebble-ready event.
check_container_ready(self.container)
# 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()
# 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)
# 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:
# Update charm status
self._on_update_status()
except CharmError as e:
- {"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": {
],
"settings": {},
"launch": {
"type": "python",
"request": "launch",
"module": "osm_nbi.nbi",
"type": "python",
"request": "launch",
"module": "osm_nbi.nbi",
# Eventually it will become ready after the first pebble-ready event.
check_container_ready(self.container)
# 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
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)
# 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:
# Update charm status
self._on_update_status()
except CharmError as e:
check_container_ready(self.container)
self._configure_certificates()
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
self._update_ro_relation()
# Update charm status