Skip to content

Commit 4161cea

Browse files
Prasanna Santhanamnitinmeh
authored andcommitted
CS-15833: PrepareForMigrationCommand extends Command
PrepareForMigrationCommand which was extending StartCommand wrongly now extends the base Command only. Signed-off-by: Prasanna Santhanam <Prasanna.Santhanam@citrix.com>
1 parent a50cf61 commit 4161cea

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎api/src/com/cloud/agent/api/PrepareForMigrationCommand.java‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@
1818

1919
import com.cloud.agent.api.to.VirtualMachineTO;
2020

21-
public class PrepareForMigrationCommand extends StartCommand {
22-
21+
public class PrepareForMigrationCommand extends Command {
22+
VirtualMachineTO vm;
23+
2324
protected PrepareForMigrationCommand() {
2425
}
2526

2627
public PrepareForMigrationCommand(VirtualMachineTO vm) {
27-
super(vm);
28+
this.vm = vm;
29+
}
30+
31+
public VirtualMachineTO getVirtualMachine() {
32+
return vm;
2833
}
2934

3035
@Override

0 commit comments

Comments
 (0)