Skip to content

Commit

Permalink
Tweak Kubernetes.get_yaml_file()
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Oct 28, 2024
1 parent 4b43b45 commit 7498f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lvmapi/tools/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_yaml_file(self, name: str):

path = pathlib.Path(config["kubernetes.deployments_path"])

files = list(path.glob(f"**/{name}*"))
files = list(path.glob(f"**/{name}.y*ml"))

if files is None or len(files) == 0:
raise ValueError(f"No YAML file found for {name!r}.")
Expand Down

0 comments on commit 7498f83

Please sign in to comment.