From 9cec7875deb666378647065161fd42b3fd61aae3 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 21 Mar 2012 11:05:37 +0530 Subject: [PATCH] can't append str to logger message --- tools/testClient/cloudstackConnection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testClient/cloudstackConnection.py b/tools/testClient/cloudstackConnection.py index d3a57263df7..435ef3fd69a 100644 --- a/tools/testClient/cloudstackConnection.py +++ b/tools/testClient/cloudstackConnection.py @@ -143,10 +143,10 @@ class cloudConnection(object): else: result = self.make_request_without_auth(commandName, requests) + if self.logging is not None: + self.logging.debug("got result: %s"%result) if result is None: return None - if self.logging is not None: - self.logging.debug("got result: " + result) result = jsonHelper.getResultObj(result, response) if raw or isAsync == "false":