From: Ondrej Lichtner <olichtne(a)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(a)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