We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 66f5ecf + 95f58db commit ef14e19Copy full SHA for ef14e19
1 file changed
ui/scripts/instanceWizard.js
@@ -965,14 +965,16 @@
965
}
966
});
967
968
- $.ajax({
969
- url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
970
- dataType: "json",
971
- async: false,
972
- success: function(json) {
973
- ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
974
- }
975
- });
+ if (selectedTemplateObj) {
+ $.ajax({
+ url: createURL("listTemplateOvfProperties&id=" + selectedTemplateObj.id),
+ dataType: "json",
+ async: false,
+ success: function(json) {
+ ovfProps = json.listtemplateovfpropertiesresponse.ovfproperty;
+ }
976
+ });
977
978
979
var $step = $('.step.sshkeyPairs:visible');
980
if (ovfProps == null || ovfProps.length === 0) {
0 commit comments