}
private static boolean haveSamePrimaryDisk(final VirtualMachineDefinition one,
final VirtualMachineDefinition other)
{
PrimaryDisk oldPrimary = one.getPrimaryDisk();
PrimaryDisk newPrimary = other.getPrimaryDisk();
boolean sameDisk = false;
if (oldPrimary.isStandard() && newPrimary.isStandard())
{
sameDisk = sameDiskStandard(oldPrimary.getDiskStandard(), newPrimary.getDiskStandard());
}
else if (oldPrimary.isStateful() && newPrimary.isStateful())
{
sameDisk = sameDiskStateful(oldPrimary.getDiskStateful(), newPrimary.getDiskStateful());
}
return sameDisk;
}