Removed useless function argument

This commit is contained in:
Emmanuel BENOîT 2022-10-07 15:28:39 +02:00
parent 0001c775d6
commit 2bc5dd04d7
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF

View file

@ -538,7 +538,7 @@ class RcInstruction(abc.ABC):
``True`` if execution must continue, ``False`` if it must be ``True`` if execution must continue, ``False`` if it must be
interrupted interrupted
""" """
self.compute_locals(host_name, variables) self.compute_locals(variables)
if self.evaluate_condition(host_name, variables): if self.evaluate_condition(host_name, variables):
rv = self.execute_action(host_name, variables) rv = self.execute_action(host_name, variables)
if not rv: if not rv:
@ -578,14 +578,13 @@ class RcInstruction(abc.ABC):
) )
return rv return rv
def compute_locals(self, host_name, variables): def compute_locals(self, variables):
"""Compute local variables. """Compute local variables.
This method iterates through all local variable definitions and runs This method iterates through all local variable definitions and runs
them through the templar. them through the templar.
Args: Args:
host_name: the name of the host the instruction is being executed for
variables: the variable storage instance variables: the variable storage instance
""" """
self._templar.available_variables = variables self._templar.available_variables = variables