Skip to content

Commit 23e232f

Browse files
committed
CLOUDSTACK-1410: Add the old constructor to VirtualMachineTO
Although the code compiled just fine, add back the old constructor for safety.
1 parent 2e28f69 commit 23e232f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

api/src/com/cloud/agent/api/to/VirtualMachineTO.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ public class VirtualMachineTO {
6060
VolumeTO[] disks;
6161
NicTO[] nics;
6262

63+
public VirtualMachineTO(long id, String instanceName, VirtualMachine.Type type, int cpus, Integer speed, long minRam, long maxRam, BootloaderType bootloader, String os, boolean enableHA, boolean limitCpuUse, String vncPassword) {
64+
this.id = id;
65+
this.name = instanceName;
66+
this.type = type;
67+
this.cpus = cpus;
68+
this.speed = speed;
69+
this.minRam = minRam;
70+
this.maxRam = maxRam;
71+
this.bootloader = bootloader;
72+
this.os = os;
73+
this.enableHA = enableHA;
74+
this.limitCpuUse = limitCpuUse;
75+
this.vncPassword = vncPassword;
76+
}
77+
6378
public VirtualMachineTO(long id, String instanceName, VirtualMachine.Type type, int cpus, Integer minSpeed, Integer maxSpeed, long minRam, long maxRam, BootloaderType bootloader, String os, boolean enableHA, boolean limitCpuUse, String vncPassword) {
6479
this.id = id;
6580
this.name = instanceName;

0 commit comments

Comments
 (0)