mirror of
https://github.com/apache/cloudstack
synced 2026-08-29 16:44:23 +00:00
CLOUDSTACK-5865. Unable to use login API if domainId parameter is id and not uuid
(cherry picked from commit e5512960af)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
1e63d0b134
commit
6609191133
@ -868,7 +868,11 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer
|
||||
|
||||
@Override
|
||||
public Long fetchDomainId(String domainUUID) {
|
||||
return _domainMgr.getDomain(domainUUID).getId();
|
||||
Domain domain = _domainMgr.getDomain(domainUUID);
|
||||
if (domain != null)
|
||||
return domain.getId();
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user