diff --git a/src/charm.py b/src/charm.py index bd27d9e..8722d9d 100755 --- a/src/charm.py +++ b/src/charm.py @@ -306,6 +306,9 @@ def _rabbitmq_layer(self) -> dict: "summary": "Pebble notifier", "command": "/usr/bin/notifier", "startup": "enabled", + # Workaround to avoid bug + # https://github.com/canonical/pebble/issues/525 + "requires": [RABBITMQ_SERVICE], }, }, } diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index e7fc662..08c9e99 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -90,6 +90,7 @@ def test_rabbitmq_pebble_ready(self): "override": "replace", "startup": "enabled", "summary": "Pebble notifier", + "requires": ["rabbitmq"], }, "epmd": { "override": "replace",