Skip to content

Commit 1d56abc

Browse files
Stephan KrugGabriel
authored andcommitted
Refactor and revert changes with assign VM error
1 parent 21af134 commit 1d56abc

File tree

5 files changed

+2162
-449
lines changed

5 files changed

+2162
-449
lines changed

api/src/main/java/com/cloud/vm/UserVmService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ VirtualMachine migrateVirtualMachine(Long vmId, Host destinationHost) throws Res
483483
VirtualMachine migrateVirtualMachineWithVolume(Long vmId, Host destinationHost, Map<String, String> volumeToPool) throws ResourceUnavailableException,
484484
ConcurrentOperationException, ManagementServerException, VirtualMachineMigrationException;
485485

486-
UserVm moveVMToUser(AssignVMCmd moveUserVMCmd) throws ResourceAllocationException, ConcurrentOperationException, ResourceUnavailableException,
486+
UserVm moveVmToUser(AssignVMCmd moveUserVMCmd) throws ResourceAllocationException, ConcurrentOperationException, ResourceUnavailableException,
487487
InsufficientCapacityException;
488488

489489
VirtualMachine vmStorageMigration(Long vmId, StoragePool destPool);

api/src/main/java/org/apache/cloudstack/api/command/admin/vm/AssignVMCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public List<Long> getSecurityGroupIdList() {
120120
@Override
121121
public void execute() {
122122
try {
123-
UserVm userVm = _userVmService.moveVMToUser(this);
123+
UserVm userVm = _userVmService.moveVmToUser(this);
124124
if (userVm == null) {
125125
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to move vm");
126126
}

0 commit comments

Comments
 (0)