From 947c2ca16dab8570a5dabc692d4dfd52e935b2ec Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Tue, 19 Oct 2010 09:53:39 -0700 Subject: [PATCH] fix problems in api post-refactor --- server/src/com/cloud/api/commands/ListVlanIpRangesCmd.java | 2 +- .../src/com/cloud/configuration/ConfigurationManagerImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/api/commands/ListVlanIpRangesCmd.java b/server/src/com/cloud/api/commands/ListVlanIpRangesCmd.java index e0f51389c5e..bcc12489928 100644 --- a/server/src/com/cloud/api/commands/ListVlanIpRangesCmd.java +++ b/server/src/com/cloud/api/commands/ListVlanIpRangesCmd.java @@ -49,7 +49,7 @@ public class ListVlanIpRangesCmd extends BaseListCmd { @Parameter(name="domainid", type=CommandType.LONG, description="the domain ID with which the VLAN IP range is associated. If used with the account parameter, returns all VLAN IP ranges for that account in the specified domain.") private Long domainId; - @Parameter(name="id", type=CommandType.LONG, required=true, description="the ID of the VLAN IP range") + @Parameter(name="id", type=CommandType.LONG, required=false, description="the ID of the VLAN IP range") private Long id; @Parameter(name="podid", type=CommandType.LONG, description="the Pod ID of the VLAN IP range") diff --git a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java index 3fbcbecfe6f..f43ee5cde45 100644 --- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java +++ b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java @@ -447,7 +447,7 @@ public class ConfigurationManagerImpl implements ConfigurationManager { String endIp = cmd.getEndIp(); String gateway = cmd.getGateway(); Long id = cmd.getId(); - String name = cmd.getName(); + String name = cmd.getPodName(); Long userId = UserContext.current().getUserId(); if (userId == null) {