mirror of https://github.com/apache/cloudstack.git
Small typo correction, exisits -> exists
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com> This closes #57
This commit is contained in:
parent
1a66b3b5c6
commit
cdc66c9e70
|
|
@ -870,7 +870,7 @@ public class SecurityGroupManagerImpl extends ManagerBase implements SecurityGro
|
|||
Account owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), cmd.getDomainId(), cmd.getProjectId());
|
||||
|
||||
if (_securityGroupDao.isNameInUse(owner.getId(), owner.getDomainId(), cmd.getSecurityGroupName())) {
|
||||
throw new InvalidParameterValueException("Unable to create security group, a group with name " + name + " already exisits.");
|
||||
throw new InvalidParameterValueException("Unable to create security group, a group with name " + name + " already exists.");
|
||||
}
|
||||
|
||||
return createSecurityGroup(cmd.getSecurityGroupName(), cmd.getDescription(), owner.getDomainId(), owner.getAccountId(), owner.getAccountName());
|
||||
|
|
|
|||
|
|
@ -2198,7 +2198,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||
boolean isNameInUse = _vmGroupDao.isNameInUse(accountId, groupName);
|
||||
|
||||
if (isNameInUse) {
|
||||
throw new InvalidParameterValueException("Unable to create vm group, a group with name " + groupName + " already exisits for account " + accountId);
|
||||
throw new InvalidParameterValueException("Unable to create vm group, a group with name " + groupName + " already exists for account " + accountId);
|
||||
}
|
||||
|
||||
return createVmGroup(groupName, accountId);
|
||||
|
|
|
|||
|
|
@ -195,10 +195,10 @@ public class AffinityGroupServiceImpl extends ManagerBase implements AffinityGro
|
|||
}
|
||||
|
||||
if (_affinityGroupDao.isNameInUse(owner.getAccountId(), owner.getDomainId(), affinityGroupName)) {
|
||||
throw new InvalidParameterValueException("Unable to create affinity group, a group with name " + affinityGroupName + " already exisits.");
|
||||
throw new InvalidParameterValueException("Unable to create affinity group, a group with name " + affinityGroupName + " already exists.");
|
||||
}
|
||||
if (domainLevel && _affinityGroupDao.findDomainLevelGroupByName(domainId, affinityGroupName) != null) {
|
||||
throw new InvalidParameterValueException("Unable to create affinity group, a group with name " + affinityGroupName + " already exisits under the domain.");
|
||||
throw new InvalidParameterValueException("Unable to create affinity group, a group with name " + affinityGroupName + " already exists under the domain.");
|
||||
}
|
||||
|
||||
final Account ownerFinal = owner;
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ public class IAMServiceImpl extends ManagerBase implements IAMService, Manager {
|
|||
if (grp != null) {
|
||||
throw new InvalidParameterValueException(
|
||||
"Unable to create acl group with name " + iamGroupName
|
||||
+ " already exisits for path " + path);
|
||||
+ " already exists for path " + path);
|
||||
}
|
||||
IAMGroupVO rvo = new IAMGroupVO(iamGroupName, description);
|
||||
rvo.setPath(path);
|
||||
|
|
@ -372,7 +372,7 @@ public class IAMServiceImpl extends ManagerBase implements IAMService, Manager {
|
|||
if (ro != null) {
|
||||
throw new InvalidParameterValueException(
|
||||
"Unable to create acl policy with name " + iamPolicyName
|
||||
+ " already exisits");
|
||||
+ " already exists");
|
||||
}
|
||||
|
||||
IAMPolicy role = Transaction.execute(new TransactionCallback<IAMPolicy>() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue