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

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-05-18 11:39:04 +02:00
1 parent c5874b73cc
commit bbc8bb1bab
1 file changed
+4
@@ -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();