'return the ip or a node name that can be looked up in consul\'s dns'

def get_inventory_name(self, node_data):

    domain = self.config.domain
    if domain:
        node_name = node_data['Node']
        if self.current_dc:
            return ('%s.node.%s.%s' % (node_name, self.current_dc, domain))
        else:
            return ('%s.node.%s' % (node_name, domain))
    else:
        return node_data['Address']
