mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
only check ssh key when using template
This commit is contained in:
parent
431d2279fe
commit
de4e4644a0
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue