show if certificate was changed or not

This commit is contained in:
Adora Laura Kalb 2024-07-08 10:26:49 +02:00
parent 3821477c34
commit 7c7fe0ba7c
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8

View file

@ -59,8 +59,11 @@ func HandleCertificates(logger *slog.Logger, config *configuration.ConfigFileDat
logger.Error("post certificate change command failed", "cert-id", cert.Name, "error", err) logger.Error("post certificate change command failed", "cert-id", cert.Name, "error", err)
} }
} }
if certIsDifferent {
logger.Info("Certificate updated successfully", "cert-id", cert.Name) logger.Info("New certificate rolled out", "cert-id", cert.Name)
} else {
logger.Info("Certificate not changed, skipping...", "cert-id", cert.Name)
}
} }
} }