diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-01-27 23:59:42 +0100 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-01-27 23:01:03 +0000 |
commit | 2f66c60ff09bd1f3505ba276b151eb6f6a2d90b1 (patch) | |
tree | e73b84c68c3b614a658eb940de920bc37771334b /testcases | |
parent | 9ad4eafd01cd8d860379abd6ac1b1f323da7b76d (diff) |
Bugfix print arguments in functest_utils.py
Change-Id: I54c94ad43a88732840c0cf915bae42a0cf476e90
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
(cherry picked from commit fd0e23740a75ef749a75431defba50520d79215a)
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/functest_utils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py index 92ababcbd..bbe933ab8 100644 --- a/testcases/functest_utils.py +++ b/testcases/functest_utils.py @@ -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 |