def _set_description(self, node):
        '''
        Create a system description.

        :return:
        '''
        hostname = socket.getfqdn() or platform.node()

        descr = etree.SubElement(node, 'description')
        author = etree.SubElement(descr, 'author')
        author.text = "salt.modules.node on {0}".format(hostname)
        contact = etree.SubElement(descr, 'contact')
        contact.text = 'root@{0}'.format(hostname)
        specs = etree.SubElement(descr, 'specification')
        specs.text = 'Rebuild of {0}, based on Salt inspection.'.format(hostname)

        return descr
def _set_description ( self , node ) : hostname = socket . getfqdn ( ) or platform . node ( ) descr = etree . SubElement ( node , 'description' ) author = etree . SubElement ( descr , 'author' ) author . text = "salt.modules.node on {0}" . format ( hostname ) contact = etree . SubElement ( descr , 'contact' ) contact . text = 'root@{0}' . format ( hostname ) specs = etree . SubElement ( descr , 'specification' ) specs . text = 'Rebuild of {0}, based on Salt inspection.' . format ( hostname ) return descr
Create a system description.

        :return: