Skip to content

Commit de4e464

Browse files
committed
only check ssh key when using template
1 parent 431d227 commit de4e464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxstar/static/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ $("#create-vm").click(function(){
280280
return disk
281281
}).then((disk) => {
282282
if (name && disk) {
283-
if (!ssh_regex.test(ssh_key)) {
283+
if (template != 'none' && !ssh_regex.test(ssh_key)) {
284284
swal("Uh oh...", "Invalid SSH key!", "error");
285285
} else if (disk > max_disk) {
286286
swal("Uh oh...", `You do not have enough disk resources available! Please lower the VM disk size to ${max_disk}GB or lower.`, "error");

0 commit comments

Comments
 (0)