Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -3081,6 +3081,9 @@ public InstanceGroupVO createVmGroup(CreateVMGroupCmd cmd) {
throw new InvalidParameterValueException("Unable to create vm group, a group with name " + groupName + " already exists for account " + accountId);
}

if (StringUtils.isEmpty(groupName)) {
throw new InvalidParameterValueException("Instance group name is empty");
}
return createVmGroup(groupName, accountId);
}

Expand Down