Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update charm libraries #60

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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:
Expand Down
Loading