CLOUDSTACK-4204: return a ZoneScope in picking cache storage.

This commit is contained in:
Min Chen 2013-08-09 18:11:53 -07:00
parent fc7743773a
commit 3efa2767a8
1 changed files with 3 additions and 3 deletions

View File

@ -183,11 +183,11 @@ public class AncientDataMotionStrategy implements DataMotionStrategy {
Scope selectedScope = null;
if (srcScope.getScopeId() != null) {
selectedScope = srcScope;
selectedScope = getZoneScope(srcScope);
} else if (destScope.getScopeId() != null) {
selectedScope = destScope;
selectedScope = getZoneScope(destScope);
} else {
s_logger.warn("Cannot find a zone-wide scope for move between cache store and image store");
s_logger.warn("Cannot find a zone-wide scope for movement that needs a cache storage");
}
return selectedScope;
}