GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
812 stars 263 forks source link

NameError: name 'floor' is not defined #1294

Closed ziajka closed 6 years ago

ziajka commented 6 years ago

https://sentry.io/gns3/gns3-server/issues/461709696/

NameError: name 'floor' is not defined
  File "gns3server/web/route.py", line 195, in control_schema
    yield from func(request, response)
  File "gns3server/handlers/api/compute/qemu_handler.py", line 187, in start
    yield from vm.start()
  File "gns3server/compute/qemu/qemu_vm.py", line 905, in start
    command = yield from self._build_command()
  File "gns3server/compute/qemu/qemu_vm.py", line 1698, in _build_command
    command.extend((yield from self._network_options()))
  File "gns3server/compute/qemu/qemu_vm.py", line 1602, in _network_options
    func = floor(pci_device_id / slots_per_function) + min_function

NameError: name 'floor' is not defined
ziajka commented 6 years ago

That's not our code.