Updated Branches: refs/heads/master a5f77d348 -> 447b2d9c9
listroutercmd: response should be set to the name of router host name of router returned instead of the name of the router. correcting the setter. Signed-off-by: Prasanna Santhanam <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/447b2d9c Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/447b2d9c Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/447b2d9c Branch: refs/heads/master Commit: 447b2d9c956337de51dfc1725b043b1f360e71a8 Parents: a5f77d3 Author: Prasanna Santhanam <[email protected]> Authored: Tue Feb 19 12:26:23 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Tue Feb 19 13:22:21 2013 +0530 ---------------------------------------------------------------------- .../api/query/dao/DomainRouterJoinDaoImpl.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/447b2d9c/server/src/com/cloud/api/query/dao/DomainRouterJoinDaoImpl.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/query/dao/DomainRouterJoinDaoImpl.java b/server/src/com/cloud/api/query/dao/DomainRouterJoinDaoImpl.java index 96b91df..3b780ee 100644 --- a/server/src/com/cloud/api/query/dao/DomainRouterJoinDaoImpl.java +++ b/server/src/com/cloud/api/query/dao/DomainRouterJoinDaoImpl.java @@ -68,7 +68,7 @@ public class DomainRouterJoinDaoImpl extends GenericDaoBase<DomainRouterJoinVO, DomainRouterResponse routerResponse = new DomainRouterResponse(); routerResponse.setId(router.getUuid()); routerResponse.setZoneId(router.getDataCenterUuid()); - routerResponse.setName(router.getHostName()); + routerResponse.setName(router.getName()); routerResponse.setTemplateId(router.getTemplateUuid()); routerResponse.setCreated(router.getCreated()); routerResponse.setState(router.getState());
