diff options
Diffstat (limited to 'steuermann/nodes.py')
-rw-r--r-- | steuermann/nodes.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/steuermann/nodes.py b/steuermann/nodes.py index dfdb6d7..0173793 100644 --- a/steuermann/nodes.py +++ b/steuermann/nodes.py @@ -81,7 +81,7 @@ class command_tree(object): def add_command_list( self, table, hostlist, command_list ) : for host in hostlist : this_table = '%s:%s' % ( host, table ) - for command, script, after_clause, pos in command_list : + for command, script, script_type, after_clause, pos in command_list : # this happens once for each CMD clause # command is the name of this command # script is the script to run @@ -95,7 +95,7 @@ class command_tree(object): print "# warning: %s already used on line %s"%(command,self.node_index[command].input_line) # create the node - self.node_index[command]=node(command, script, nice_pos( current_file_name, pos) ) + self.node_index[command]=node(command, script, script_type, nice_pos( current_file_name, pos) ) for before_name, required, pos in after_clause : # this happens once for each AFTER clause @@ -178,12 +178,13 @@ def wildcard_name( wild, name ) : # true if the before node is finished running. # class node(object) : - def __init__(self, name, script, input_line) : + def __init__(self, name, script, script_type, input_line) : # the fully qualified name of the node self.name = name # the command script that this node runs self.script = script + self.script_type = script_type # what line of the input file specified this node; this is # a string of the form "foo.bar 123" |