Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

chore(deps): update dependency ops to v2.13.0 #99

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cosl
ops==2.12.0
ops==2.13.0
ops-lib-pgsql
4 changes: 2 additions & 2 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _get_external_hostname(self) -> str:
Returns:
The assigned hostname.
"""
hostname = self.config["external_hostname"]
hostname = typing.cast(str, self.config["external_hostname"])
if hostname == "":
hostname = self.app.name
return hostname
Expand Down Expand Up @@ -459,7 +459,7 @@ def _make_pod_env(self) -> Union[dict, bool, set, str]:
Returns:
A dictionary used for envConfig in podspec.
"""
env = self.model.config["environment"]
env = typing.cast(str, self.model.config["environment"])

if not env:
return {}
Expand Down
Loading