mirror of https://github.com/apache/cloudstack.git
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:
parent
c9d9a18ace
commit
ae9b6d4fe1
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue