mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-07-17 14:35:25 +08:00
try fixing templates on home-manager
Update pkgs/sops-install-secrets/main.go
This commit is contained in:
parent
3433ea14fb
commit
8d13626351
3 changed files with 11 additions and 4 deletions
|
|
@ -698,7 +698,11 @@ func (app *appContext) validateManifest() error {
|
|||
// The Nix module only defines placeholders for secrets if there are
|
||||
// templates.
|
||||
if len(m.Templates) > 0 {
|
||||
placeholder := m.PlaceholderBySecretName[secret.Name]
|
||||
placeholder, present := m.PlaceholderBySecretName[secret.Name]
|
||||
if !present {
|
||||
return fmt.Errorf("placeholder for %s not found in manifest", secret.Name)
|
||||
}
|
||||
|
||||
app.secretByPlaceholder[placeholder] = secret
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue