diff --git a/scripts/mkvm.ps1 b/scripts/mkvm.ps1 index 2616280..dc214fb 100644 --- a/scripts/mkvm.ps1 +++ b/scripts/mkvm.ps1 @@ -30,7 +30,7 @@ $vmCpus = @{ function create_vm{ param([string]$nomvm) - if ($vmMem.ContainsKey($nomvm)) -and ($vmCpus.ContainsKey($nomvm))) { + if (($vmMem.ContainsKey($nomvm)) -and ($vmCpus.ContainsKey($nomvm))) { & "$vboxmanage" import "$ovafile" --vsys 0 --vmname "$nomvm" --memory $vmMem[$nomvm] --cpus $vmCpus[$nomvm] Write-Host "Machine $nomvm importée" } else {