bug 10674: For recurring snapshots when there is quota hit log it and send an email alert.

Reviewed by : Kishan.
This commit is contained in:
Nitin Mehta 2011-12-13 14:24:25 +05:30
parent a703315d34
commit b2b8ce1758
1 changed files with 1 additions and 1 deletions

View File

@ -1409,7 +1409,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
try{
_resourceLimitMgr.checkResourceLimit(owner, ResourceType.snapshot);
} catch (ResourceAllocationException e){
if (snapshotType == Type.RECURRING){
if (snapshotType != Type.MANUAL){
String msg = "Snapshot resource limit exceeded for account id : " + owner.getId() + ". Failed to create recurring snapshots";
s_logger.warn(msg);
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_UPDATE_RESOURCE_COUNT, 0L, 0L, msg,