summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Svcmgr.py
blob: a1b6442ff3e6316f9c8b7b833c16a6db964a52d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'''This generator provides service mappings'''
__revision__ = '$Revision$'

from Bcfg2.Server.Plugin import Plugin, ScopedXMLFile

class Svcmgr(Plugin):
    '''This is a generator that handles service assignments'''
    __name__ = 'Svcmgr'
    __version__ = '$Id$'
    __author__ = 'bcfg-dev@mcs.anl.gov'

    def __init__(self, core, datastore):
        Plugin.__init__(self, core, datastore)
        self.svc = ScopedXMLFile("%s/etc/services.xml"%(datastore), self.core.fam)
        self.Entries = self.svc.__provides__