cloudstack/server/src
Nitin Kumar Maharana 8c6fb0e312 CLOUDSTACK-10157: Wrong notification while migration (#2337)
Root Cause:
Earlier, it was failing with ArrayIndexOutOfBoundsException, when the list is empty and accessing the first element.
The error was only observed in Log, but was not showing in UI as it was not throwing any exception.
Hence the API call was in turn successful.

Solution:
Added the empty check before sending device details.
Which says either the required GPU device is not available or out of capacity.
2017-12-11 21:50:37 +05:30
..
com/cloud CLOUDSTACK-10157: Wrong notification while migration (#2337) 2017-12-11 21:50:37 +05:30
org Merge pull request #2124 from GabrielBrascher/CLOUDSTACK-9432 2017-11-28 10:31:23 -02:00