mirror of https://github.com/apache/cloudstack.git
CS-14775: When trying to vms when there is enough capacity for only Vms between the min and max range , we donot respect the min count.
Changes: Deploy minimum instances if the max allowed is less than the specified max. number in the request.
This commit is contained in:
parent
2dff3e7422
commit
da884e18ef
|
|
@ -1377,7 +1377,7 @@ public class EC2Engine {
|
|||
}
|
||||
|
||||
if ( canCreateInstances < request.getMaxCount())
|
||||
createInstances = canCreateInstances;
|
||||
createInstances = request.getMinCount();
|
||||
else
|
||||
createInstances = request.getMaxCount();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue