From 308706e3d4709d48ea72c8332ad1ae135354d0b4 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 2 Nov 2016 10:20:43 +0100 Subject: [PATCH] Raise error if IOU image is not configured Fix #757 --- gns3server/compute/iou/iou_vm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/compute/iou/iou_vm.py b/gns3server/compute/iou/iou_vm.py index f8146654..6858b76f 100644 --- a/gns3server/compute/iou/iou_vm.py +++ b/gns3server/compute/iou/iou_vm.py @@ -169,6 +169,8 @@ class IOUVM(BaseNode): Checks if IOUYAP executable is available and if image is accessible. """ + if not self._path: + raise IOUError("IOU image is not configured") if not os.path.isfile(self._path) or not os.path.exists(self._path): if os.path.islink(self._path): raise IOUError("IOU image '{}' linked to '{}' is not accessible".format(self._path, os.path.realpath(self._path)))