From 06f15504ed77b21b15016884de73e5a9f83a86a6 Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Fri, 27 Sep 2024 11:36:12 +1200 Subject: [PATCH] Use MaintenanceStatus for local issues. --- ops/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/model.py b/ops/model.py index 14c44b92f..fc7523096 100644 --- a/ops/model.py +++ b/ops/model.py @@ -2352,7 +2352,7 @@ def can_connect(self) -> bool: # Check that Pebble is still reachable now. container = self.unit.get_container("example") if not container.can_connect(): - event.add_status(ops.WaitingStatus("Waiting for Pebble...")) + event.add_status(ops.MaintenanceStatus("Waiting for Pebble...")) """ try: self._pebble.get_system_info()