From ec7f1150b7d00695c33684bc6346bf147b2249f4 Mon Sep 17 00:00:00 2001 From: Nils Hamerlinck Date: Mon, 17 Oct 2022 20:39:58 +0700 Subject: [PATCH] [FIX] kubefiles_path --- src/runboat/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runboat/settings.py b/src/runboat/settings.py index fb92c8b..3481580 100644 --- a/src/runboat/settings.py +++ b/src/runboat/settings.py @@ -23,7 +23,7 @@ class BuildSettings(BaseModel): template_vars: dict[str, str] = {} kubefiles_path: Path | None - validate_kubefiles_path = validator("kubefiles_path", allow_reuse=True)( + validate_kubefiles_path = validator("kubefiles_path", allow_reuse=True, pre=True)( validate_path ) @@ -84,7 +84,7 @@ class Settings(BaseSettings): disable_commit_statuses: bool = False validate_build_default_kubefiles_path = validator( - "build_default_kubefiles_path", allow_reuse=True + "build_default_kubefiles_path", allow_reuse=True, pre=True )(validate_path) def get_build_settings(self, repo: str, target_branch: str) -> list[BuildSettings]: