aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2017-02-23 17:53:17 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-03-24 16:29:28 +0000
commit361d663d7d99b02186c3b47bf144f55c7080198f (patch)
tree2e6df896dcf48118da7718aa01fdbb3516c5f874
parentc8bdd15bca5f17ad5332afa7c3e2d2d7468e0c1c (diff)
downloadsos-361d663d7d99b02186c3b47bf144f55c7080198f.tar.gz
[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 <pmoravec@redhat.com>
-rw-r--r--sos/policies/__init__.py3
1 files changed, 1 insertions, 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: