From b1447d447e43fb03687b8d959ea0b4f2f0fa61f1 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Mon, 4 Jan 2021 13:27:52 -0500 Subject: [python] Update import for RHELPolicy Updates the import of `RHELPolicy` for setting the python version checking command on RHEL systems. Related: #2349 Signed-off-by: Jake Hunsaker --- sos/report/plugins/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sos/report/plugins/python.py b/sos/report/plugins/python.py index daacec16..fabf31a5 100644 --- a/sos/report/plugins/python.py +++ b/sos/report/plugins/python.py @@ -9,7 +9,7 @@ # See the LICENSE file in the source distribution for further information. from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin -import sos.policies +from sos.policies.distros.redhat import RHELPolicy import os import json import hashlib @@ -42,7 +42,7 @@ class RedHatPython(Python, RedHatPlugin): def setup(self): self.add_cmd_output(['python2 -V', 'python3 -V']) - if isinstance(self.policy, sos.policies.redhat.RHELPolicy) and \ + if isinstance(self.policy, RHELPolicy) and \ self.policy.dist_version() > 7: self.python_version = "/usr/libexec/platform-python -V" super(RedHatPython, self).setup() -- cgit