Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: tiger12506/VMAT
base: 52c7545f25
...
head fork: tiger12506/VMAT
compare: 8aad0fba3c
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 2 additions and 2 deletions.
  1. +2 −2 VMAT/Controllers/VirtualMachineController.cs
View
4 VMAT/Controllers/VirtualMachineController.cs
@@ -67,8 +67,8 @@ public ActionResult Create()
[HttpPost]
public ActionResult Create(VirtualMachineFormViewModel vmForm)
{
- if (vmRepo.GetAllRegisteredVirtualMachines().Count < configRepo.GetMaxVmCount() &&
- configRepo.GetMaxVmCount() > 0)
+ if (vmRepo.GetAllRegisteredVirtualMachines().Count < configRepo.GetMaxVmCount() ||
+ configRepo.GetMaxVmCount() <= 0)
{
if (ModelState.IsValid)
{

No commit comments for this range

Something went wrong with that request. Please try again.