Expand sos report plugin compatibility

sos 4 now uses sos.report.plugin when sos 3 was using sos.plugins. This
change allows compatibility with both.
This commit is contained in:
Yanis Guenane 2021-06-18 16:00:49 +02:00 committed by Shane McDonald
parent 0a5e9da287
commit 645f7f6dac
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -1,7 +1,10 @@
# Copyright (c) 2016 Ansible, Inc.
# All Rights Reserved.
from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin
try:
from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin
except ImportError:
from sos.report.plugins import Plugin, RedHatPlugin, UbuntuPlugin
SOSREPORT_TOWER_COMMANDS = [
"awx-manage --version", # tower version