From 361d663d7d99b02186c3b47bf144f55c7080198f Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Thu, 23 Feb 2017 17:53:17 +0100 Subject: [policies] get package list without a timeout Package list shall never timeout, otherwise pkgs gets empty, causing KeyError later on. Resolves: #942 Signed-off-by: Pavel Moravec --- sos/policies/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index af8ed757..a641e45f 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -55,7 +55,6 @@ class PackageManager(object): """ query_command = None - timeout = 30 chroot = None def __init__(self, query_command=None, chroot=None): @@ -99,7 +98,7 @@ class PackageManager(object): if self.query_command: cmd = self.query_command pkg_list = shell_out( - cmd, timeout=self.timeout, chroot=self.chroot + cmd, timeout=0, chroot=self.chroot ).splitlines() for pkg in pkg_list: -- cgit