human
Solve the following python programming problem given the following code:
def get_resources(self, name = None, available = False) : 
    res_url = self.resource_url 
    if available : 
        res_url += '?list=available' 
xml = self.catalog.get_xml (res_url) 
    def ft_from_node(node) : 
        return featuretype_from_index (self.catalog, self.workspace, self, node) 
if (name is not None) : 
        for node in xml.findall ('featureType') : 
            if (node.findtext ('name') == ft_from_node) : 
                return ft_from_node (node) 
return None 
if available : 
        return [str (node.text) for node in xml.findall ('featureTypeName')] 
else : 
        return [ft_from_node (node) for node in xml.findall ('featureType')] 

    
    

    Fix the buggy line: if (node.findtext ('name') == ft_from_node) :
assistant
#Here is Python code to fix the buggy line: if (node.

if (node.findtext ('name') == name) :