diff --git a/src/tempo_cluster.py b/src/tempo_cluster.py index 251e971..bb474c1 100644 --- a/src/tempo_cluster.py +++ b/src/tempo_cluster.py @@ -100,12 +100,14 @@ class DatabagAccessPermissionError(TempoClusterError): """Raised when a follower attempts to write leader settings.""" -class JujuTopology(pydantic.BaseModel): - """JujuTopology.""" +class _JujuTopologyModel(pydantic.BaseModel): + """_JujuTopologyModel.""" model: str + model_uuid: str + application: str + charm_name: str unit: str - # ... # DatabagModel implementation from traefik.v1.ingress charm lib. @@ -224,7 +226,7 @@ class TempoClusterRequirerAppData(DatabagModel): class TempoClusterRequirerUnitData(DatabagModel): """TempoClusterRequirerUnitData.""" - juju_topology: JujuTopology + juju_topology: _JujuTopologyModel address: str @@ -262,7 +264,6 @@ def __init__( ): super().__init__(charm, key or endpoint) self._charm = charm - self.juju_topology = {"unit": self.model.unit.name, "model": self.model.name} # filter out common unhappy relation states self._relations: List[ops.Relation] = [