diff --git a/src/lifecycle.py b/src/lifecycle.py index ce3f0d2a..2d02d228 100644 --- a/src/lifecycle.py +++ b/src/lifecycle.py @@ -73,8 +73,8 @@ def _unit_tearing_down_and_app_active(self) -> _UnitTearingDownAndAppActive: return _UnitTearingDownAndAppActive.FALSE @_unit_tearing_down_and_app_active.setter - def _unit_tearing_down_and_app_active(self, status: _UnitTearingDownAndAppActive) -> None: - self._stored.unit_tearing_down_and_app_active = status.value + def _unit_tearing_down_and_app_active(self, enum_member: _UnitTearingDownAndAppActive) -> None: + self._stored.unit_tearing_down_and_app_active = enum_member.value def _on_relation_departed(self, event: ops.RelationDepartedEvent) -> None: if event.departing_unit == self._charm.unit: