Merge "Add same launch instance error handling as image to instance"
This commit is contained in:
commit
c1486728d3
@ -516,7 +516,8 @@
|
|||||||
function checkVolumeForImage() {
|
function checkVolumeForImage() {
|
||||||
var source = selection[0];
|
var source = selection[0];
|
||||||
|
|
||||||
if (source && ctrl.currentBootSource === bootSourceTypes.IMAGE) {
|
if (source && ctrl.currentBootSource === bootSourceTypes.IMAGE ||
|
||||||
|
source && ctrl.currentBootSource === bootSourceTypes.INSTANCE_SNAPSHOT ) {
|
||||||
var imageGb = source.size * 1e-9;
|
var imageGb = source.size * 1e-9;
|
||||||
var imageDisk = source.min_disk;
|
var imageDisk = source.min_disk;
|
||||||
ctrl.minVolumeSize = Math.ceil(Math.max(imageGb, imageDisk));
|
ctrl.minVolumeSize = Math.ceil(Math.max(imageGb, imageDisk));
|
||||||
|
Loading…
Reference in New Issue
Block a user