From db351f8cbad8c06a9af59dec024c7b178b79e769 Mon Sep 17 00:00:00 2001 From: anthony Date: Thu, 31 Mar 2011 13:51:09 -0700 Subject: [PATCH] bug 9249: use interval type , not snapshot type status 9249: resolved fixed --- server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 280ddbe0eb2..430fe3ed012 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -1011,7 +1011,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma policy = _snapshotPolicyDao.acquireInLockTable(policy.getId()); policy.setSchedule(cmd.getSchedule()); policy.setTimezone(timezoneId); - policy.setInterval((short) type.ordinal()); + policy.setInterval((short)intvType.ordinal()); policy.setMaxSnaps(cmd.getMaxSnaps()); policy.setActive(true); _snapshotPolicyDao.update(policy.getId(), policy);