We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 809dc33 commit 95f58dbCopy full SHA for 95f58db
1 file changed
ui/scripts/instanceWizard.js
@@ -960,14 +960,16 @@
960
}
961
});
962
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
- });
+ if (selectedTemplateObj) {
+ $.ajax({
+ url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
+ dataType: "json",
+ async: false,
+ success: function(json) {
+ ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
+ }
971
+ });
972
973
974
var $step = $('.step.sshkeyPairs:visible');
975
if (ovfProps == null || ovfProps.length === 0) {
0 commit comments