/usr/share/pyshared/landscape/sysinfo/testplugin.py is in landscape-common 12.04.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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)
|