mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
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:
committed by
Shane McDonald
parent
0a5e9da287
commit
645f7f6dac
@@ -1,7 +1,10 @@
|
|||||||
# Copyright (c) 2016 Ansible, Inc.
|
# Copyright (c) 2016 Ansible, Inc.
|
||||||
# All Rights Reserved.
|
# 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 = [
|
SOSREPORT_TOWER_COMMANDS = [
|
||||||
"awx-manage --version", # tower version
|
"awx-manage --version", # tower version
|
||||||
|
|||||||
Reference in New Issue
Block a user