Ticket #867: Metadata.py.patch

File Metadata.py.patch, 683 bytes (added by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70, 12 years ago)
  • /usr/share/python-support/bcfg2-server/Bcfg2/Server/Plugins/Metadata.py

    old new  
    723723    def viz(self, hosts, bundles, key, colors): 
    724724        '''admin mode viz support''' 
    725725        groups_tree = lxml.etree.parse(self.data + "/groups.xml") 
     726        try: 
     727            groups_tree.xinclude() 
     728        except lxml.etree.XIncludeError: 
     729            self.logger.error("Failed to process XInclude for file %s" % dest) 
    726730        groups = groups_tree.getroot() 
    727731        categories = {'default':'grey83'} 
    728732        instances = {}