forked from fediversity/fediversity
account for 285
This commit is contained in:
parent
ac7a059d05
commit
ef4876239d
2 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ locals {
|
|||
hostname = inst
|
||||
cfg = {
|
||||
# enable if any user applications are enabled
|
||||
enable = anytrue([for _, app in local.application_configs: app.cfg.enable])
|
||||
enable = anytrue([for _, app in local.application_configs: try(app.cfg.enable, false)])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -70,5 +70,5 @@ module "nixos" {
|
|||
];
|
||||
}
|
||||
EOF
|
||||
}) if inst.cfg.enable}
|
||||
}) if try(inst.cfg.enable, false)}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class DeploymentStatus(ConfigurationForm):
|
|||
} | {
|
||||
# pass in form info to our deployment
|
||||
# FIXME: ensure sensitive info is protected
|
||||
f"TF_VAR_{k}": v if isinstance(v, str) else json.dumps(v) for k, v in config.json().items()
|
||||
f"TF_VAR_{k}": v if isinstance(v, str) else json.dumps(v) for k, v in json.loads(config.model_dump_json()).items()
|
||||
}
|
||||
logger.info("env: %s", env)
|
||||
cwd = f"{settings.repo_dir}/infra/operator"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue