CandlepinBrokerXML - file /etc/candlepin/broker.xml

class insights.parsers.candlepin_broker.CandlepinBrokerXML(context)[source]

Bases: XMLParser

Parse the /etc/candlepin/broker.xml file.

Note

Please refer to its super-class insights.core.XMLParser

Examples

>>> type(broker)
<class 'insights.parsers.candlepin_broker.CandlepinBrokerXML'>
>>> page_dirs = broker.get_elements('.//paging-directory')
>>> page_dirs[0].text
'/var/lib/candlepin/activemq-artemis/paging'
>>> usage_ele = broker.dom.find('.//max-disk-usage')
>>> usage_ele.text
'99'