From 89d28498329912844b62a6e13a280c5a6135feb4 Mon Sep 17 00:00:00 2001 From: telcobot <147593099+telcobot@users.noreply.github.com> Date: Sun, 25 Feb 2024 11:23:52 -0500 Subject: [PATCH 1/2] chore: Update charm libraries (#65) --- .../tls_certificates_interface/v3/tls_certificates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/charms/tls_certificates_interface/v3/tls_certificates.py b/lib/charms/tls_certificates_interface/v3/tls_certificates.py index 7ca29d9..0ef74a1 100644 --- a/lib/charms/tls_certificates_interface/v3/tls_certificates.py +++ b/lib/charms/tls_certificates_interface/v3/tls_certificates.py @@ -312,7 +312,7 @@ def _on_all_certificates_invalidated(self, event: AllCertificatesInvalidatedEven # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 1 +LIBPATCH = 2 PYDEPS = ["cryptography", "jsonschema"] @@ -1488,10 +1488,10 @@ def get_requirer_csrs(self) -> List[RequirerCSR]: Returns: list: List of RequirerCSR objects. """ - requirer_csrs = [] relation = self.model.get_relation(self.relationship_name) if not relation: - raise RuntimeError(f"Relation {self.relationship_name} does not exist") + return [] + requirer_csrs = [] requirer_relation_data = _load_relation_data(relation.data[self.model.unit]) requirer_csrs_dict = requirer_relation_data.get("certificate_signing_requests", []) for requirer_csr_dict in requirer_csrs_dict: From b1cbb03f4c674842b708c3ef3ac0c67d01041016 Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Mon, 26 Feb 2024 07:30:14 -0500 Subject: [PATCH 2/2] chore: use build-packages (#64) Co-authored-by: Gulsum Atici --- charmcraft.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/charmcraft.yaml b/charmcraft.yaml index f7f65c3..a7fd575 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -11,9 +11,7 @@ parts: charm: build-packages: - cargo + - libffi-dev + - libssl-dev + - pkg-config - rustc - charm-binary-python-packages: - - cryptography - - jsonschema - - pip - - setuptools