mirror of https://github.com/apache/cloudstack.git
cloudian: fix NPEs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
1cc3e733ee
commit
b5d81feea5
|
|
@ -134,7 +134,7 @@ public class CloudianConnectorImpl extends ComponentLifecycleBase implements Clo
|
|||
return false;
|
||||
}
|
||||
LOG.debug("Adding Cloudian user account with uuid=" + account.getUuid() + " name=" + account.getAccountName());
|
||||
final Domain domain = domainDao.findById(account.getId());
|
||||
final Domain domain = domainDao.findById(account.getDomainId());
|
||||
UserInfo user = new UserInfo();
|
||||
user.setActive(true);
|
||||
user.setUserId(account.getUuid());
|
||||
|
|
@ -150,7 +150,7 @@ public class CloudianConnectorImpl extends ComponentLifecycleBase implements Clo
|
|||
return false;
|
||||
}
|
||||
LOG.debug("Removing Cloudian user account with uuid=" + account.getUuid() + " name=" + account.getAccountName());
|
||||
final Domain domain = domainDao.findById(account.getId());
|
||||
final Domain domain = domainDao.findById(account.getDomainId());
|
||||
return client.removeUser(account.getUuid(), domain.getUuid());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue