Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def test_operating_system(self):
operating_system(s)

def test_task_type(self):
for s in ['RUN_COMMAND', 'AUTOMATION', 'LAMBDA', 'STEP_FUNCTION']:
for s in ['RUN_COMMAND', 'AUTOMATION', 'LAMBDA', 'STEP_FUNCTIONS']:
task_type(s)
for s in ['', 'foo', 'a', 'l@mbda', 'STEPFUNCTION']:
with self.assertRaises(ValueError):
Expand Down
2 changes: 1 addition & 1 deletion troposphere/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def notification_event(events):


def task_type(task):
valid_tasks = ['RUN_COMMAND', 'AUTOMATION', 'LAMBDA', 'STEP_FUNCTION']
valid_tasks = ['RUN_COMMAND', 'AUTOMATION', 'LAMBDA', 'STEP_FUNCTIONS']
if task not in valid_tasks:
raise ValueError(
'TaskType must be one of: "%s"' % (
Expand Down