|
|
@ -139,7 +139,6 @@ class CommandRunner(object):
|
|
|
|
|
|
|
|
|
|
|
|
self._default_output = module.connection.default_output
|
|
|
|
self._default_output = module.connection.default_output
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def add_command(self, command, output=None, prompt=None, response=None,
|
|
|
|
def add_command(self, command, output=None, prompt=None, response=None,
|
|
|
|
**kwargs):
|
|
|
|
**kwargs):
|
|
|
|
if command in [str(c) for c in self.commands]:
|
|
|
|
if command in [str(c) for c in self.commands]:
|
|
|
@ -185,6 +184,7 @@ class CommandRunner(object):
|
|
|
|
errmsg = 'One or more conditional statements have not been satisfied'
|
|
|
|
errmsg = 'One or more conditional statements have not been satisfied'
|
|
|
|
raise FailedConditionsError(errmsg, failed_conditions)
|
|
|
|
raise FailedConditionsError(errmsg, failed_conditions)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Conditional(object):
|
|
|
|
class Conditional(object):
|
|
|
|
"""Used in command modules to evaluate waitfor conditions
|
|
|
|
"""Used in command modules to evaluate waitfor conditions
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|