UI bug fix: Cannot deploy VM from ISO (#3995)

This commit is contained in:
Wei Zhou 2020-03-30 20:28:04 +02:00 committed by GitHub
parent 809dc33532
commit 95f58dbbdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -960,14 +960,16 @@
}
});
$.ajax({
url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
dataType: "json",
async: false,
success: function(json) {
ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
}
});
if (selectedTemplateObj) {
$.ajax({
url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
dataType: "json",
async: false,
success: function(json) {
ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
}
});
}
var $step = $('.step.sshkeyPairs:visible');
if (ovfProps == null || ovfProps.length === 0) {