vars upload: also add become_root

This commit is contained in:
Jörg Thalheim
2025-05-28 20:33:37 +02:00
parent 743c31d788
commit dcb430037f

View File

@@ -28,7 +28,7 @@ def upload_command(args: argparse.Namespace) -> None:
populate_secret_vars(machine, directory)
return
with machine.target_host().ssh_control_master() as host:
with machine.target_host().ssh_control_master() as host, host.become_root() as host:
upload_secret_vars(machine, host)