From de4e4644a007cc2fb1d2e011fe5806e74beeff40 Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Sat, 20 Oct 2018 17:13:02 -0400 Subject: [PATCH] only check ssh key when using template --- proxstar/static/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxstar/static/js/script.js b/proxstar/static/js/script.js index 5b6f012..154bcb1 100644 --- a/proxstar/static/js/script.js +++ b/proxstar/static/js/script.js @@ -280,7 +280,7 @@ $("#create-vm").click(function(){ return disk }).then((disk) => { if (name && disk) { - if (!ssh_regex.test(ssh_key)) { + if (template != 'none' && !ssh_regex.test(ssh_key)) { swal("Uh oh...", "Invalid SSH key!", "error"); } else if (disk > max_disk) { swal("Uh oh...", `You do not have enough disk resources available! Please lower the VM disk size to ${max_disk}GB or lower.`, "error");