Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .system_collector import SystemCollector
from .firmware_collector import FirmwareCollector
from .cable_collector import CableCollector
from .pcc_collector import PccCollector


class CollectorManager(object):
Expand All @@ -12,6 +13,7 @@ def collect_all(self):
self.collect_system_info()
self.collect_firmware_info()
self.collect_cable_info()
self.collect_pcc_info()

def collect_system_info(self):
for ctx in self.device_contexts:
Expand All @@ -26,3 +28,9 @@ def collect_firmware_info(self):
def collect_cable_info(self):
for ctx in self.device_contexts:
CableCollector().run(self.plugin, ctx)

def collect_pcc_info(self):
if not self.plugin.get_option("pcc", default=False):
return
for ctx in self.device_contexts:
PccCollector().run(self.plugin, ctx)
Loading
Loading