Fixes bug when starting a packet capture in VirtualBox with the project path containing spaces.

This commit is contained in:
grossmj 2015-03-10 11:05:52 -06:00
parent 4c68fd0d52
commit 062e5a5986

View File

@ -650,7 +650,7 @@ class VirtualBoxVM(BaseVM):
if nio.capturing:
yield from self._modify_vm("--nictrace{} on".format(adapter_number + 1))
yield from self._modify_vm("--nictracefile{} {}".format(adapter_number + 1, nio.pcap_output_file))
yield from self._modify_vm('--nictracefile{} "{}"'.format(adapter_number + 1, nio.pcap_output_file))
for adapter_number in range(len(self._ethernet_adapters), self._maximum_adapters):
log.debug("disabling remaining adapter {}".format(adapter_number))