Merge "Add same launch instance error handling as image to instance"
This commit is contained in:
commit
c1486728d3
|
@ -516,7 +516,8 @@
|
|||
function checkVolumeForImage() {
|
||||
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 imageDisk = source.min_disk;
|
||||
ctrl.minVolumeSize = Math.ceil(Math.max(imageGb, imageDisk));
|
||||
|
|
Loading…
Reference in New Issue