1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

B #4988: Fix RDP when instantiate vm template (#107)

(cherry picked from commit 192ba8f5905d3a69e35d35c149970b7d1d282116)
This commit is contained in:
Sergio Betanzos 2020-07-20 15:45:49 +02:00 committed by Tino Vazquez
parent 2d355ff920
commit 11b46d8abd
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -178,6 +178,10 @@ define(function(require) {
delete nic["PARENT"];
}
(Boolean($("input#" + that.id + "_rdp", context).prop("checked")))
? nic["RDP"] = "YES"
: delete nic["RDP"];
if ( !nic["NETWORK_MODE"] || ( nic["NETWORK_MODE"] && nic["NETWORK_MODE"] !== "auto" ) )
{
var val = $(this).data("vnetsTable").retrieveResourceTableSelect();