mirror of https://github.com/apache/cloudstack.git
CS-15788 Update of AutoScale Vm Profile is failing when the vm group's state is in disabled state.
Corrected the check on path of updateAutoScaleVmProfile.
This commit is contained in:
parent
fcb3076375
commit
a0d6dd4ad3
|
|
@ -368,7 +368,7 @@ public class AutoScaleManagerImpl<Type> implements AutoScaleService, Manager {
|
|||
|
||||
List<AutoScaleVmGroupVO> vmGroupList = _autoScaleVmGroupDao.listByAll(null, profileId);
|
||||
for (AutoScaleVmGroupVO vmGroupVO : vmGroupList) {
|
||||
if (vmGroupVO.getState().equals(AutoScaleVmGroup.State_Disabled)) {
|
||||
if (!vmGroupVO.getState().equals(AutoScaleVmGroup.State_Disabled)) {
|
||||
throw new InvalidParameterValueException("The AutoScale Vm Profile can be updated only if the Vm Group it is associated with is disabled in state", null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue