From ba4128f57ba837aef2ab7a3279e0856707858d12 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 13 Jan 2016 16:37:50 +0100 Subject: [PATCH] Show hostname when the hostname is missing in the iourc.txt --- gns3server/modules/iou/iou_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index 1fe6ace1..0e4786ac 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -400,7 +400,7 @@ class IOUVM(BaseVM): raise IOUError("License section not found in iourc file {}".format(self.iourc_path)) hostname = socket.gethostname() if hostname not in config["license"]: - raise IOUError("Hostname key not found in iourc file {}".format(self.iourc_path)) + raise IOUError("Hostname \"{}\" not found in iourc file {}".format(hostname, self.iourc_path)) user_ioukey = config["license"][hostname] if user_ioukey[-1:] != ';': raise IOUError("IOU key not ending with ; in iourc file".format(self.iourc_path))