mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-11 16:41:04 +00:00
Fix Dynamips ghost image support when project contains a space. Fixes #3015
This commit is contained in:
parent
ea17cc2565
commit
1cbed45f16
@ -26,7 +26,6 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import glob
|
import glob
|
||||||
import shlex
|
|
||||||
import base64
|
import base64
|
||||||
import shutil
|
import shutil
|
||||||
import binascii
|
import binascii
|
||||||
@ -805,12 +804,12 @@ class Router(BaseNode):
|
|||||||
:ghost_file: path to ghost file
|
:ghost_file: path to ghost file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
await self._hypervisor.send('vm set_ghost_file "{name}" {ghost_file}'.format(name=self._name,
|
await self._hypervisor.send('vm set_ghost_file "{name}" "{ghost_file}"'.format(name=self._name,
|
||||||
ghost_file=shlex.quote(ghost_file)))
|
ghost_file=ghost_file))
|
||||||
|
|
||||||
log.info('Router "{name}" [{id}]: ghost file set to {ghost_file}'.format(name=self._name,
|
log.info('Router "{name}" [{id}]: ghost file set to "{ghost_file}"'.format(name=self._name,
|
||||||
id=self._id,
|
id=self._id,
|
||||||
ghost_file=ghost_file))
|
ghost_file=ghost_file))
|
||||||
|
|
||||||
self._ghost_file = ghost_file
|
self._ghost_file = ghost_file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user