summaryrefslogtreecommitdiffstats
path: root/test/functest/utils.py
diff options
context:
space:
mode:
authorRomanos Skiadas <rski@intracom-telecom.com>2016-12-02 10:01:12 +0200
committerRomanos Skiadas <rski@intracom-telecom.com>2016-12-02 10:24:02 +0200
commit1709d20268322703a3fa31bc0d3df8a5c669d488 (patch)
tree8a7f186bbfee2efbfb7bf9e259418f929763e199 /test/functest/utils.py
parentecec8d640a8ac1f2c82a63326073bb6baddb9b6f (diff)
Move logging instance creation to create_instance
Change-Id: I299f2be3b127aefdd7036fa68fb934b09d278692 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Diffstat (limited to 'test/functest/utils.py')
-rw-r--r--test/functest/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functest/utils.py b/test/functest/utils.py
index 351797b..90dfe93 100644
--- a/test/functest/utils.py
+++ b/test/functest/utils.py
@@ -112,6 +112,9 @@ def create_instance(nova_client,
if instance is None:
logger.error("Error while booting instance.")
sys.exit(-1)
+ else:
+ logger.debug("Instance '%s' booted successfully. IP='%s'." %
+ (name, instance.networks.itervalues().next()[0]))
# Retrieve IP of INSTANCE
# instance_ip = instance.networks.get(network_id)[0]