Merge pull request 'vms.create: don't generate secrets if clan is remote' (#424) from lassulus-vm_generate into main
Reviewed-on: #424
This commit is contained in:
commit
2f9ec882b2
@ -64,10 +64,13 @@ class BuildVmTask(BaseTask):
|
||||
env["SECRETS_DIR"] = str(secrets_dir)
|
||||
|
||||
cmd = next(cmds)
|
||||
cmd.run(
|
||||
[vm_config["generateSecrets"]],
|
||||
env=env,
|
||||
)
|
||||
if Path(self.vm.flake_url).is_dir():
|
||||
cmd.run(
|
||||
[vm_config["generateSecrets"]],
|
||||
env=env,
|
||||
)
|
||||
else:
|
||||
cmd.run(["echo", "won't generate secrets for non local clan"])
|
||||
|
||||
cmd = next(cmds)
|
||||
cmd.run(
|
||||
|
Loading…
Reference in New Issue
Block a user