Bugfix print arguments in functest_utils.py 99/8199/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Wed, 27 Jan 2016 22:59:42 +0000 (23:59 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Wed, 27 Jan 2016 22:59:42 +0000 (23:59 +0100)
Change-Id: I54c94ad43a88732840c0cf915bae42a0cf476e90
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
testcases/functest_utils.py

index 92ababc..bbe933a 100644 (file)
@@ -88,8 +88,8 @@ def get_instance_status(nova_client, instance):
         instance = nova_client.servers.get(instance.id)
         return instance.status
     except Exception, e:
-        print "Error [get_instance_status(nova_client, instance)]:" % \
-                                                        str(instance), e
+        print "Error [get_instance_status(nova_client, '%s')]:" % \
+            str(instance), e
         return None
 
 
@@ -98,7 +98,8 @@ def get_instance_by_name(nova_client, instance_name):
         instance = nova_client.servers.find(name=instance_name)
         return instance
     except Exception, e:
-        print "Error [get_instance_by_name(nova_client, '%s')]:" %instance_name, e
+        print "Error [get_instance_by_name(nova_client, '%s')]:" % \
+            instance_name, e
         return None