You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by an...@apache.org on 2020/03/30 18:28:18 UTC
[cloudstack] branch 4.13 updated: UI bug fix: Cannot deploy VM from
ISO (#3995)
This is an automated email from the ASF dual-hosted git repository.
andrijapanic pushed a commit to branch 4.13
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.13 by this push:
new 95f58db UI bug fix: Cannot deploy VM from ISO (#3995)
95f58db is described below
commit 95f58dbbdc669ec5bb996b5a74294d75a6e786af
Author: Wei Zhou <w....@global.leaseweb.com>
AuthorDate: Mon Mar 30 20:28:04 2020 +0200
UI bug fix: Cannot deploy VM from ISO (#3995)
---
ui/scripts/instanceWizard.js | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js
index a6fdfbb..e85ab29 100644
--- a/ui/scripts/instanceWizard.js
+++ b/ui/scripts/instanceWizard.js
@@ -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) {