bug 6865: fixing the alerts code which was broken; hence no alerts were being sent out

status 6865: resolved fixed
This commit is contained in:
abhishek 2010-11-15 14:37:55 -08:00
parent f071f5c5b3
commit 1e8d5675f6

View File

@ -151,8 +151,7 @@ public class AlertManagerImpl implements AlertManager {
smtpDebug = Boolean.parseBoolean(smtpDebugStr);
}
_emailAlert = new EmailAlert(emailAddresses, smtpHost, smtpPort, useAuth, smtpUsername, smtpPassword, emailSender, smtpDebug);
_emailAlert = null;
_emailAlert = new EmailAlert(emailAddresses, smtpHost, smtpPort, useAuth, smtpUsername, smtpPassword, emailSender, smtpDebug);
String storageCapacityThreshold = configs.get("storage.capacity.threshold");
String cpuCapacityThreshold = configs.get("cpu.capacity.threshold");