Fixes ghost file path.

This commit is contained in:
grossmj 2015-02-18 18:24:35 -07:00
parent 610dee957d
commit 3d1363150e

View File

@ -435,7 +435,7 @@ class Dynamips(BaseManager):
except DynamipsError as e:
log.warn("Could not create ghost instance: {}".format(e))
if vm.ghost_file != ghost_file and os.path.isfile(ghost_file):
if vm.ghost_file != ghost_file and os.path.isfile(ghost_file_path):
# set the ghost file to the router
yield from vm.set_ghost_status(2)
yield from vm.set_ghost_file(ghost_file)