[PATCH 5/8] Task: fix connect_PerfRepo method

olichtne at redhat.com olichtne at redhat.com
Fri Jun 12 11:52:09 UTC 2015


From: Ondrej Lichtner <olichtne at redhat.com>

This commit fixes a copy paste mistake when calling get_option to
retrieve url, username and password to access a PerfRepo instance.

Signed-off-by: Ondrej Lichtner <olichtne at redhat.com>
---
 lnst/Controller/Task.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 529d134..e350679 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -108,9 +108,9 @@ class ControllerAPI(object):
             if url is None:
                 url = lnst_config.get_option("perfrepo", "url")
             if username is None:
-                url = lnst_config.get_option("perfrepo", "username")
+                username = lnst_config.get_option("perfrepo", "username")
             if password is None:
-                url = lnst_config.get_option("perfrepo", "password")
+                password = lnst_config.get_option("perfrepo", "password")
             self._perf_repo_api.connect(url, username, password)
         return self._perf_repo_api
 
-- 
2.1.0



More information about the LNST-developers mailing list