/usr/lib/python2.7/dist-packages/Bcfg2/Server/Plugins/Cfg/CfgInfoXML.py is in bcfg2-server 1.4.0~pre2+git141-g6d40dace6358-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 14 15 16 17 18 19 20 21 22 23 24 25 | """ Handle info.xml files """
from Bcfg2.Server.Plugin import InfoXML
from Bcfg2.Server.Plugins.Cfg import CfgInfo
class CfgInfoXML(CfgInfo):
""" CfgInfoXML handles :file:`info.xml` files for
:ref:`server-plugins-generators-cfg` """
#: Handle :file:`info.xml` files
__basenames__ = ['info.xml']
def __init__(self, path):
CfgInfo.__init__(self, path)
self.infoxml = InfoXML(path)
__init__.__doc__ = CfgInfo.__init__.__doc__
def bind_info_to_entry(self, entry, metadata):
self.infoxml.BindEntry(entry, metadata)
bind_info_to_entry.__doc__ = CfgInfo.bind_info_to_entry.__doc__
def handle_event(self, event):
self.infoxml.HandleEvent()
handle_event.__doc__ = CfgInfo.handle_event.__doc__
|