Skip to content

Commit

Permalink
tox fmt and cos_agent bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Jan 13, 2025
1 parent 9427a7d commit 6c08294
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/charms/grafana_agent/v0/cos_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class _MetricsEndpointDict(TypedDict):

LIBID = "dc15fa84cef84ce58155fb84f6c6213a"
LIBAPI = 0
LIBPATCH = 12
LIBPATCH = 13

PYDEPS = ["cosl", "pydantic"]

Expand Down Expand Up @@ -767,7 +767,7 @@ def is_ready(self, relation: Optional[Relation] = None):
"""Is this endpoint ready?"""
relation = relation or self._relation
if not relation:
logger.debug(f"no relation on {self._relation_name !r}: tracing not ready")
logger.debug(f"no relation on {self._relation_name!r}: tracing not ready")
return False
if relation.data is None:
logger.error(f"relation data is None for {relation}")
Expand Down Expand Up @@ -1029,8 +1029,7 @@ def _get_requested_protocols(self, relation: Relation):
if len(units) > 1:
# should never happen
raise ValueError(
f"unexpected error: subordinate relation {relation} "
f"should have exactly one unit"
f"unexpected error: subordinate relation {relation} should have exactly one unit"
)

unit = next(iter(units), None)
Expand Down

0 comments on commit 6c08294

Please sign in to comment.