vars: allow re-encrypting secrets when recipient keys were added.
When the users of a secret change, when for example a new admin user is added, an error will be thrown when generating vars, prompting the user to pass --fix to re-encrypt the secrets
This commit is contained in:
@@ -60,7 +60,9 @@ def flash_machine(
|
||||
extra_args = []
|
||||
system_config_nix: dict[str, Any] = {}
|
||||
|
||||
generate_vars_for_machine(machine, generator_name=None, regenerate=False)
|
||||
generate_vars_for_machine(
|
||||
machine, generator_name=None, regenerate=False, fix=False
|
||||
)
|
||||
generate_facts([machine], service=None, regenerate=False)
|
||||
|
||||
if system_config.wifi_settings:
|
||||
|
||||
Reference in New Issue
Block a user