Skip to content

Commit

Permalink
F OpenNebula#2427: Fixed bug with SCHED_REQUERIMENTS filled in Sunstone
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmont committed Nov 20, 2018
1 parent 4afa011 commit 3f30f99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ define(function(require) {
$(".auto", context).show();

if ( templateJSON["SCHED_REQUIREMENTS"] ) {
$("input#"+this.nicTabId+"_SCHED_REQUIREMENTS", context).val(templateJSON["SCHED_REQUIREMENTS"]);
$("input#"+this.nicTabId+"_SCHED_REQUIREMENTS", context).val(templateJSON["SCHED_REQUIREMENTS"].split('"').join("\\\""));
}

if ( templateJSON["SCHED_RANK"] ) {
Expand Down
4 changes: 2 additions & 2 deletions src/sunstone/public/app/utils/nics-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ define(function(require) {
var selected_vnets = vnetsTableAuto.retrieveResourceTableSelect();

$.each(selected_vnets, function(index, netID) {
req_string.push('ID="'+netID+'"');
req_string.push('ID=\\"'+netID+'\\"');
});
$(".SCHED_REQUIREMENTS", dd_context).val(req_string.join(" | "));
}
Expand Down Expand Up @@ -320,7 +320,7 @@ define(function(require) {
$(".auto", dd_context).show();

if ( options.nic["SCHED_REQUIREMENTS"] ) {
$("input#provision_accordion_dd_"+provision_nic_accordion_dd_id+"_SCHED_REQUIREMENTS", dd_context).val(options.nic["SCHED_REQUIREMENTS"]);
$("input#provision_accordion_dd_"+provision_nic_accordion_dd_id+"_SCHED_REQUIREMENTS", dd_context).val(options.nic["SCHED_REQUIREMENTS"].split('"').join("\\\""));
}

if ( options.nic["SCHED_RANK"] ) {
Expand Down

0 comments on commit 3f30f99

Please sign in to comment.