vars: respect deploy flag for shared secrets

This commit is contained in:
Juanjo Presa
2025-10-18 23:09:31 +02:00
parent 5ab3c86b68
commit c7cee905d1
4 changed files with 25 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ def run_generators(
for generator in all_generators:
if generator.share:
for file in generator.files:
if not file.secret or not file.exists:
if not file.secret or not file.exists or not file.deploy:
continue
machine.secret_vars_store.ensure_machine_has_access(
generator,