Skip to content

ResultPath is ignored if set to None #57

@juayu

Description

@juayu

This doesn't work. if I set the result_path=None, "ResultPath" won't appear in JSON, so I cannot pass the input as output for a task.

Aren't below test case fail every time?

def test_paths_none_converted_to_null():
task_state = Task('Task', resource='arn:aws:lambda:us-east-1:1234567890:function:StartLambda',
result_path=None,
input_path=None,
output_path=None)
assert '"ResultPath": null' in task_state.to_json()
assert '"InputPath": null' in task_state.to_json()
assert '"OutputPath": null' in task_state.to_json()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions