D7net Mini Sh3LL v1

 
OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /lib/apparmor/../snapd/../python3/dist-packages/landscape/sysinfo/

 Home   ☍ Command   ☍ Upload File   ☍Info Server   ☍ Buat File   ☍ Mass deface   ☍ Jumping   ☍ Config   ☍ Symlink   ☍ About 

Current File : //lib/apparmor/../snapd/../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)

AnonSec - 2021 | Recode By D7net