The AutoservFetcher object constructor used to not call
its parent constructor. However, the work to support
a GitFetcher moved some methods to common code, and now
it is necessary to call install_pkg_setup, that does
require the setup made by the parent's constructor.

This patch fixes the following problem, when running
a simple sleeptest using the web interface:

07/30 17:31:44 DEBUG|  parallel:0030| AttributeError: 'AutoservFetcher' object 
has no attribute 'pkgmgr'

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 client/harness_autoserv.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/harness_autoserv.py b/client/harness_autoserv.py
index d14db7d..97db009 100644
--- a/client/harness_autoserv.py
+++ b/client/harness_autoserv.py
@@ -94,7 +94,8 @@ class harness_autoserv(harness.harness):
 
 class AutoservFetcher(base_packages.RepositoryFetcher):
     def __init__(self, package_manager, job_harness):
-        self.url = "autoserv://"
+        super(AutoservFetcher, self).__init__(package_manager=package_manager,
+                                              repository_url="autoserv://")
         self.job_harness = job_harness
 
 
-- 
1.7.11.2

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to