fix: enforce domain into renewal command (#2576)

This commit is contained in:
Ludovic Fernandez 2025-07-10 18:14:03 +02:00 committed by GitHub
commit bfa487cc48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@ func renewForDomains(ctx *cli.Context, account *Account, keyType certcrypto.KeyT
time.Sleep(sleepTime)
}
renewalDomains := domains
renewalDomains := slices.Clone(domains)
if !forceDomains {
renewalDomains = merge(certDomains, domains)
}
@ -258,6 +258,8 @@ func renewForDomains(ctx *cli.Context, account *Account, keyType certcrypto.KeyT
log.Fatal(err)
}
certRes.Domain = domain
certsStorage.SaveResource(certRes)
addPathToMetadata(meta, domain, certRes, certsStorage)