Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
deusebio committed Jul 26, 2023
1 parent 54fec84 commit 453758a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def _on_certificate_expiring(self, _) -> None:
new_csr = generate_csr(
private_key=self.private_key.encode("utf-8"),
subject=os.uname()[1],
**self._sans,
sans_ip=self._sans["sans_ip"],
sans_dns=self._sans["sans_dns"],
)

self.certificates.request_certificate_renewal(
Expand All @@ -275,7 +276,8 @@ def _request_certificate(self) -> None:
csr = generate_csr(
private_key=self.private_key.encode("utf-8"),
subject=os.uname()[1],
**self._sans,
sans_ip=self._sans["sans_ip"],
sans_dns=self._sans["sans_dns"],
)
self.charm.unit_peer_data.update({"csr": csr.decode("utf-8").strip()})

Expand Down

0 comments on commit 453758a

Please sign in to comment.