cli password-store: skip uploading non secret files

This commit is contained in:
lassulus
2024-11-22 22:10:38 +01:00
parent 0ef31a42df
commit 13b7d3c7ec

View File

@@ -154,6 +154,8 @@ class SecretStore(SecretStoreBase):
for f_name, file in generator["files"].items():
if not file["deploy"]:
continue
if not file["secret"]:
continue
tar_file = tarfile.TarInfo(name=f"{gen_name}/{f_name}")
content = self.get(gen_name, f_name, generator["share"])
tar_file.size = len(content)