Fix file mode should be optional in configuration files section

This commit is contained in:
allegroai
2024-07-24 17:41:06 +03:00
parent f367c5a571
commit 700ae85de0
2 changed files with 10 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ def apply_files(config):
target_fmt = data.get("target_format", "string")
overwrite = bool(data.get("overwrite", True))
contents = data.get("contents")
mode = data.get("mode")
mode = data.get("mode", None)
target = Path(expanduser(expandvars(path)))