1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #~: Fix ssh checkbox when instantiate template (#1223)

(cherry picked from commit bbc8bb1bab9c82d185ba9d90e087e677f0ee3430)
This commit is contained in:
Sergio Betanzos 2021-05-18 11:39:04 +02:00 committed by Ruben S. Montero
parent c0626ea047
commit fd03c0b5ed
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -188,6 +188,10 @@ define(function(require) {
? nic["RDP"] = "YES"
: delete nic["RDP"];
(Boolean($("input#" + that.id + "_ssh", context).prop("checked")))
? nic["SSH"] = "YES"
: delete nic["SSH"];
if ( !nic["NETWORK_MODE"] || ( nic["NETWORK_MODE"] && nic["NETWORK_MODE"] !== "auto" ) )
{
var ip4 = $("input.manual_ip4", $(this)).val();