diff --git a/scenarios/misc/static_agent.yaml b/scenarios/misc/static_agent.yaml index 35b121c..d9182f2 100644 --- a/scenarios/misc/static_agent.yaml +++ b/scenarios/misc/static_agent.yaml @@ -12,7 +12,7 @@ execution: - title: List all files class: shell - method: ls -al + program: ls -al - title: Run sample script class: shell diff --git a/shaker/engine/executors/shell.py b/shaker/engine/executors/shell.py index 59d2e11..648d6ad 100644 --- a/shaker/engine/executors/shell.py +++ b/shaker/engine/executors/shell.py @@ -23,8 +23,8 @@ LOG = logging.getLogger(__name__) class ShellExecutor(base.BaseExecutor): def get_command(self): - if 'method' in self.test_definition: - cmd = base.CommandLine(self.test_definition['method']) + if 'program' in self.test_definition: + cmd = base.CommandLine(self.test_definition['program']) elif 'script' in self.test_definition: cmd = base.Script(self.test_definition['script']) return cmd.make()