@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
lib
/
python3
/
dist-packages
/
landscape
/
sysinfo
/
Path :
Upload File :
New :
File
Dir
//lib/python3/dist-packages/landscape/sysinfo/testplugin.py
from twisted.internet.defer import succeed current_instance = None class TestPlugin(object): def __init__(self): self.sysinfo = None self.has_run = False global current_instance current_instance = self def register(self, sysinfo): self.sysinfo = sysinfo def run(self): self.has_run = True self.sysinfo.add_header("Test header", "Test value") self.sysinfo.add_note("Test note") self.sysinfo.add_footnote("Test footnote") return succeed(None)