Sort image list by name when launch instance
Just like the flavor sort issue, this is another regression issue
when we shift from the legacy launch instance wizard. By default,
the image list should be ordered by name.
var enabledSnapshot = allEnabled || !config.disable_instance_snapshot;
if (enabledImage || enabledSnapshot) {
- return glanceAPI.getImages({status: 'active'}).then(function getEnabledImages(data) {
+ var filter = {status: 'active', sort_key: 'name', sort_dir: 'asc'};
+ return glanceAPI.getImages(filter).then(function getEnabledImages(data) {
if (enabledImage) {
onGetImages(data);
}
