Skip to content

Commit 95f58db

Browse files
authored
UI bug fix: Cannot deploy VM from ISO (#3995)
1 parent 809dc33 commit 95f58db

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

ui/scripts/instanceWizard.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -960,14 +960,16 @@
960960
}
961961
});
962962

963-
$.ajax({
964-
url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
965-
dataType: "json",
966-
async: false,
967-
success: function(json) {
968-
ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
969-
}
970-
});
963+
if (selectedTemplateObj) {
964+
$.ajax({
965+
url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
966+
dataType: "json",
967+
async: false,
968+
success: function(json) {
969+
ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
970+
}
971+
});
972+
}
971973

972974
var $step = $('.step.sshkeyPairs:visible');
973975
if (ovfProps == null || ovfProps.length === 0) {

0 commit comments

Comments
 (0)