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:
Vijay 2012-08-01 08:20:13 +05:30
parent fcb3076375
commit a0d6dd4ad3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}