%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/landscape/sysinfo/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/landscape/sysinfo/testplugin.py

from twisted.internet.defer import succeed


current_instance = None


class TestPlugin:
    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)

Zerion Mini Shell 1.0