Skip to content

Commit

Permalink
Addresses review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan committed Nov 15, 2023
1 parent 40cac2c commit 3352d29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ def _on_certificates_relation_joined(self, event: EventBase) -> None:
if not self._private_key_is_stored():
event.defer()
return
if not self._certificate_is_stored():
self._request_new_certificate()
if self._certificate_is_stored():
return

self._request_new_certificate()

def _on_certificate_available(self, event: CertificateAvailableEvent) -> None:
"""Pushes certificate to workload and configures workload.
Expand Down

0 comments on commit 3352d29

Please sign in to comment.