Skip to content

Commit

Permalink
Remove narrower typing
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielArndt committed Oct 16, 2023
1 parent b180849 commit 72c1977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ def _configure_nrf(self, event: EventBase) -> None:
self._publish_nrf_info_for_all_requirers()
self.unit.status = ActiveStatus()

def _on_certificates_relation_created(self, event: RelationCreatedEvent) -> None:
def _on_certificates_relation_created(self, event: EventBase) -> None:
"""Generates Private key."""
if not self._container.can_connect():
event.defer()
return
self._generate_private_key()

def _on_certificates_relation_broken(self, event: RelationBrokenEvent) -> None:
def _on_certificates_relation_broken(self, event: EventBase) -> None:
"""Deletes TLS related artifacts and reconfigures workload."""
if not self._container.can_connect():
event.defer()
Expand All @@ -190,7 +190,7 @@ def _on_certificates_relation_broken(self, event: RelationBrokenEvent) -> None:
self._delete_certificate()
self.unit.status = BlockedStatus("Waiting for certificates relation to be created")

def _on_certificates_relation_joined(self, event: RelationJoinedEvent) -> None:
def _on_certificates_relation_joined(self, event: EventBase) -> None:
"""Generates CSR and requests new certificate."""
if not self._container.can_connect():
event.defer()
Expand Down

0 comments on commit 72c1977

Please sign in to comment.