Skip to content

Commit

Permalink
Fix NameError: name 'available_ram' is not define
Browse files Browse the repository at this point in the history
Fix #767
  • Loading branch information
julien-duponchelle committed Nov 11, 2016
1 parent 0f0dff3 commit f968f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gns3server/controller/gns3vm/vmware_gns3_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _set_vcpus_ram(self, vcpus, ram):

# memory must be a multiple of 4 (VMware requirement)
if ram % 4 != 0:
raise GNS3VMError("Allocated memory for the GNS3 VM must be a multiple of 4".format(available_ram))
raise GNS3VMError("Allocated memory {} for the GNS3 VM must be a multiple of 4".format(ram))

available_vcpus = psutil.cpu_count(logical=False)
if vcpus > available_vcpus:
Expand Down

0 comments on commit f968f66

Please sign in to comment.