From fd03c0b5ed2e9dcfab091940125e12b96364ff30 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Tue, 18 May 2021 11:39:04 +0200 Subject: [PATCH] M #~: Fix ssh checkbox when instantiate template (#1223) (cherry picked from commit bbc8bb1bab9c82d185ba9d90e087e677f0ee3430) --- src/sunstone/public/app/utils/nics-section.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sunstone/public/app/utils/nics-section.js b/src/sunstone/public/app/utils/nics-section.js index ef754b8940..6678dc2231 100644 --- a/src/sunstone/public/app/utils/nics-section.js +++ b/src/sunstone/public/app/utils/nics-section.js @@ -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();