Skip to content

Commit 65593b3

Browse files
Update server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
Co-authored-by: Wei Zhou <weizhou@apache.org>
1 parent 715911d commit 65593b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7592,7 +7592,7 @@ protected Network ensureDestinationNetwork(AssignVMCmd cmd, UserVmVO vm, Account
75927592
logger.debug("No need to ensure an isolated network for the VM because security groups is enabled for this zone.");
75937593
return null;
75947594
}
7595-
if (securityGroupIdList != null && !securityGroupIdList.isEmpty()) {
7595+
if (CollectionUtils.isNotEmpty(securityGroupIdList)) {
75967596
throw new InvalidParameterValueException("Cannot move VM with security groups; security group feature is not enabled in this zone.");
75977597
}
75987598

0 commit comments

Comments
 (0)