Merge pull request #81 from nilshamerlinck/fix_kubefiles_path

[FIX] kubefiles_path
This commit is contained in:
Stéphane Bidoul 2022-10-17 16:06:05 +02:00 committed by GitHub
commit 545d44e944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]: