Skip to content

Commit

Permalink
[DPE-2341] Populate extensions in unit databag (#202)
Browse files Browse the repository at this point in the history
* Populate extensions in unit databag

* Populate the extensions together with the other fields
  • Loading branch information
dragomirp authored Aug 8, 2023
1 parent ad6f351 commit 3f7510b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/relations/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def update_endpoints(self, relation: Relation = None) -> None:
else ""
)

required_extensions, _ = self._get_extensions(relation)
# Set the read/write endpoint.
allowed_subnets = self._get_allowed_subnets(relation)
allowed_units = self._get_allowed_units(relation)
Expand All @@ -336,6 +337,7 @@ def update_endpoints(self, relation: Relation = None) -> None:
"master": primary_endpoint,
"standbys": read_only_endpoints,
"state": self._get_state(),
"extensions": ",".join(required_extensions),
}

# Set the data only in the unit databag.
Expand Down

0 comments on commit 3f7510b

Please sign in to comment.