"""
ClusterConf - file ``/etc/cluster/cluster.conf``
================================================
Stores a filtered set of lines from the cluster config file. Because of the
filtering, the content as a whole will not parse as XML. We use a
:class:`insights.core.TextFileOutput` parser class because, sadly, it's
easiest.
"""
from insights.core import TextFileOutput
from insights.core.plugins import parser
from insights.specs import Specs
[docs]
@parser(Specs.cluster_conf)
class ClusterConf(TextFileOutput):
"""
Parse the ``/etc/cluster/cluster.conf`` file as a list of lines. ``get``
can be used to find lines containing one or more keywords. Because of
filters used on this file, we cannot parse this as XML.
"""
pass