bug 6776: for some reason, we checked for zoneId = -1 in registerTemplate and applied it to all zones, but this wasn't done for registerIso. Oh well, make the change for registerIso and things seem happy again

status 6776: resolved fixed
This commit is contained in:
Kris McQueen 2010-10-26 17:55:00 -07:00
parent c9d9a18ace
commit ae9b6d4fe1
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ public class RegisterIsoCmd extends BaseCmd {
List<TemplateResponse> responses = new ArrayList<TemplateResponse>();
List<DataCenterVO> zones = null;
if (zoneId != null) {
if ((zoneId != null) && (zoneId != -1)) {
zones = new ArrayList<DataCenterVO>();
zones.add(ApiDBUtils.findZoneById(zoneId));
} else {