mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-29 18:28:11 +00:00
parent
f038735595
commit
bd4de862c8
@ -536,14 +536,19 @@ class IOUVM(BaseVM):
|
||||
:param returncode: Process returncode
|
||||
"""
|
||||
|
||||
log.info("{} process has stopped, return code: {}".format(process_name, returncode))
|
||||
self._terminate_process_iou()
|
||||
self._terminate_process_iouyap()
|
||||
self._ioucon_thread_stop_event.set()
|
||||
|
||||
if returncode != 0:
|
||||
self.project.emit("log.error", {"message": "{} process has stopped, return code: {}\n{}".format(process_name,
|
||||
returncode,
|
||||
self.read_iou_stdout())})
|
||||
log.info("{} process has stopped, return code: {}".format(process_name, returncode))
|
||||
else:
|
||||
if returncode == 11:
|
||||
message = "{} process has stopped, return code: {}. This could be an issue with the image using a different image can fix the issue.\n{}".format(process_name, returncode, self.read_iou_stdout())
|
||||
else:
|
||||
message = "{} process has stopped, return code: {}\n{}".format(process_name, returncode, self.read_iou_stdout())
|
||||
log.warn(message)
|
||||
self.project.emit("log.error", {"message": message})
|
||||
|
||||
def _rename_nvram_file(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user