/usr/lib/python2.7/dist-packages/arcnagios/jobplugins/__init__.py is in nordugrid-arc-nagios-plugins 1.9.1-1.
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 | from scripted import ScriptedJobPlugin
from staging import StagingJobPlugin
_jobplugins_by_name = {
'scripted': ScriptedJobPlugin,
'staging': StagingJobPlugin,
}
def register_jobplugin(cls):
_jobplugins_by_name[cls.name] = cls
def load_jobplugin(name):
return _jobplugins_by_name[name]
|