mirror of https://github.com/apache/cloudstack.git
A zoneId of -1 means all zones, so if zoneId is passed in as -1 just list all zones for registering the template
This commit is contained in:
parent
dd88d714d1
commit
88814d95f0
|
|
@ -151,7 +151,7 @@ public class RegisterTemplateCmd 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