Module Import alias Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call NameLoad Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad Str Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad Str Assign NameStore Dict For NameStore NameLoad body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A os N/A fnmatch N/A yaml log log get_node_info N/A N/A node_dir node_name N/A N/A N/A 
    Recurses down the directory trying to find filename wildcards that
    match the given filename. Returns the node info for the closest
    match.

    If there are two wildcards that match, the one that is more
    specific will win.

    Example:
        node_name = 'dev-sea1.api.example.com'

        files = os.listdir(node_dir)
        # Returns ['dev%','dev%.api.example.com', 'staging%']
        get_node_info(node_dir, node_name) = node info of 'dev%.api.example.com'

    Keyword arguments:
        node_dir -- the directory to start
        node_name -- the name of the host to match against
     N/A N/A N/A log debug entering node.get_node_info N/A result N/A _descend node_dir node_name N/A N/A N/A result sort N/A N/A N/A x y N/A N/A cmp N/A len N/A N/A N/A N/A N/A os path basename x translate None %* N/A len N/A N/A N/A N/A N/A os path basename y translate None %* N/A ret N/A N/A r result N/A N/A N/A open r node_file N/A N/A N/A N/A ret update N/A N/A yaml load N/A N/A node_file read N/A N/A N/A log debug leaving node.get_node_info: %s ret N/A ret N/A _descend N/A N/A base_dir node_name N/A N/A N/A 
    Recurses down the directory trying to find filename wildcards that
    match the given filename. Returns a list of all wildcards that match.

    Keyword arguments:
        base_dir -- the directory to start
        node_name -- the name of the host to match against
     N/A files N/A N/A os listdir base_dir N/A result N/A N/A f files N/A N/A srcfile N/A N/A N/A os path join base_dir f N/A N/A N/A N/A os path isdir srcfile N/A N/A N/A N/A result extend N/A _descend srcfile node_name N/A N/A N/A N/A fnmatch filter N/A node_name N/A N/A f replace % * N/A N/A N/A N/A result append srcfile N/A result N/A