mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8958: throw an exception if project account cannot be found
This commit is contained in:
parent
37301ed454
commit
89ce8bd9e2
@ -2618,6 +2618,9 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
||||
}
|
||||
|
||||
vlanOwner = _accountMgr.getAccount(project.getProjectAccountId());
|
||||
if (vlanOwner == null) {
|
||||
throw new InvalidParameterValueException("Please specify a valid projectId");
|
||||
}
|
||||
}
|
||||
|
||||
Domain domain = null;
|
||||
@ -3329,6 +3332,9 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
||||
throw new InvalidParameterValueException("Unable to find project by id " + projectId);
|
||||
}
|
||||
vlanOwner = _accountMgr.getAccount(project.getProjectAccountId());
|
||||
if (vlanOwner == null) {
|
||||
throw new InvalidParameterValueException("Please specify a valid projectId");
|
||||
}
|
||||
}
|
||||
|
||||
Domain domain = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user