mirror of https://github.com/apache/cloudstack.git
Bug 12649: Added ROOT to domain path and removed trailing slash
Status 12649: resolved fixed Reviewed-By: Abhi Conflicts: server/src/com/cloud/api/ApiResponseHelper.java
This commit is contained in:
parent
a0f48786d1
commit
60ac3627a9
|
|
@ -353,7 +353,9 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
domainResponse.setLevel(domain.getLevel());
|
||||
domainResponse.setNetworkDomain(domain.getNetworkDomain());
|
||||
domainResponse.setParentDomainId(domain.getParent());
|
||||
domainResponse.setPath(domain.getPath());
|
||||
StringBuilder domainPath = new StringBuilder("ROOT");
|
||||
(domainPath.append(domain.getPath())).deleteCharAt(domainPath.length() - 1);
|
||||
domainResponse.setPath(domainPath.toString());
|
||||
if (domain.getParent() != null) {
|
||||
domainResponse.setParentDomainName(ApiDBUtils.findDomainById(domain.getParent()).getName());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue