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

Commit

Permalink
chore(deps): update dependency ops to v2.13.0 (#99)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency ops to v2.13.0

* fix linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Arturo Seijas <arturo.seijas@canonical.com>
Co-authored-by: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com>
  • Loading branch information
3 people committed May 2, 2024
1 parent 86a521b commit d677dd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit d677dd9

Please sign in to comment.