[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [test-API][PATCH] Fix the missing ret variable problem



On 08/23/2011 06:18 PM, Wayne Sun wrote:
---
  repos/remoteAccess/tls_setup.py |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/repos/remoteAccess/tls_setup.py b/repos/remoteAccess/tls_setup.py
index 80d6b42..4e7f24e 100644
--- a/repos/remoteAccess/tls_setup.py
+++ b/repos/remoteAccess/tls_setup.py
@@ -343,6 +343,7 @@ def request_credentials(credentials, user_data):
  def hypervisor_connecting_test(uri, auth_tls, username,
                                  password, logger, expected_result):
      """ connect remote server """
+    ret = 0
      try:
          conn = connectAPI.ConnectAPI()
          if auth_tls == 'none':
@@ -355,6 +356,7 @@ def hypervisor_connecting_test(uri, auth_tls, username,
      except LibvirtAPI, e:
          logger.error("API error message: %s, error code is %s" % \
                       (e.response()['message'], e.response()['code']))
+        ret = 1

      conn.close()


   ACK and pushed


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]