Skip to content

Commit

Permalink
Satisfy mypy by forcing config values to be returned as strings.
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Jun 10, 2024
1 parent f693cc5 commit 0dcf376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rookify/modules/create_cluster/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class CreateClusterHandler(ModuleHandler):
@property
def __mon_placement_label(self) -> str:
return (
self._config["rook"]["cluster"]["mon_placement_label"]
str(self._config["rook"]["cluster"]["mon_placement_label"])
if "mon_placement_label" in self._config["rook"]["cluster"]
else f"placement-{self._config["rook"]["cluster"]["name"]}-mon"
)

@property
def __mgr_placement_label(self) -> str:
return (
self._config["rook"]["cluster"]["mgr_placement_label"]
str(self._config["rook"]["cluster"]["mgr_placement_label"])
if "mgr_placement_label" in self._config["rook"]["cluster"]
else f"placement-{self._config["rook"]["cluster"]["name"]}-mgr"
)
Expand Down

0 comments on commit 0dcf376

Please sign in to comment.