You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (currentServiceOffering.getDiskOfferingStrictness() != newServiceOffering.getDiskOfferingStrictness()) {
1201
-
thrownewInvalidParameterValueException("Unable to upgrade VM, since disk offering strictness flag is not same for new service offering and old service offering");
1202
-
}
1203
-
1204
-
if (currentServiceOffering.getDiskOfferingStrictness() && currentServiceOffering.getDiskOfferingId() != newServiceOffering.getDiskOfferingId()) {
1205
-
thrownewInvalidParameterValueException("Unable to Scale VM, since disk offering id associated with the old service offering is not same for new service offering");
// Increment or decrement CPU and Memory count accordingly.
@@ -1887,20 +1881,7 @@ private boolean upgradeRunningVirtualMachine(Long vmId, Long newServiceOfferingI
1887
1881
thrownewInvalidParameterValueException("Unable to Scale VM: since dynamic scaling enabled flag is not same for new service offering and old service offering");
1888
1882
}
1889
1883
1890
-
if (currentServiceOffering.getDiskOfferingStrictness() != newServiceOffering.getDiskOfferingStrictness()) {
1891
-
thrownewInvalidParameterValueException("Unable to Scale VM, since disk offering strictness flag is not same for new service offering and old service offering");
1892
-
}
1893
-
1894
-
if (currentServiceOffering.getDiskOfferingStrictness() && currentServiceOffering.getDiskOfferingId() != newServiceOffering.getDiskOfferingId()) {
1895
-
thrownewInvalidParameterValueException("Unable to Scale VM, since disk offering id associated with the old service offering is not same for new service offering");
if (currentServiceOffering.getDiskOfferingStrictness() != newServiceOffering.getDiskOfferingStrictness()) {
2011
+
thrownewInvalidParameterValueException("Unable to Scale VM, since disk offering strictness flag is not same for new service offering and old service offering");
2012
+
}
2013
+
2014
+
if (currentServiceOffering.getDiskOfferingStrictness() && currentServiceOffering.getDiskOfferingId() != newServiceOffering.getDiskOfferingId()) {
2015
+
thrownewInvalidParameterValueException("Unable to Scale VM, since disk offering id associated with the old service offering is not same for new service offering");
0 commit comments