From 95a89ac91b3c0cd510175d5ac1016ee8be1d4fd3 Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 29 Oct 2014 10:15:22 -0600 Subject: [PATCH] Change find an unused port. --- gns3server/modules/attic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/attic.py b/gns3server/modules/attic.py index f337ec5c..cdfcc050 100644 --- a/gns3server/modules/attic.py +++ b/gns3server/modules/attic.py @@ -71,9 +71,9 @@ def find_unused_port(start_port, end_port, host='127.0.0.1', socket_type="TCP", else: continue else: - raise Exception("Could not find an unused port between {} and {}: {}".format(start_port, end_port, e)) + raise Exception("Could not find an unused port between {} and {} on host {}: {}".format(start_port, end_port, host, e)) - raise Exception("Could not find a free port between {0} and {1}, last exception: {}".format(start_port, end_port, last_exception)) + raise Exception("Could not find a free port between {} and {} on host {}, last exception: {}".format(start_port, end_port, host, last_exception)) def wait_socket_is_ready(host, port, wait=2.0, socket_timeout=10):