Load execution context from file when creating execution via CLI

Registered by Renat Akhmerov

When starting a new workflow execution using CLI we should be able to load execution context from a file. Now we get:

bash-3.2$ mistral execution-create my_wb execute_backup my_ctx.json
usage: mistral execution-create [-h] [-f {shell,table}] [-c COLUMN]
                                [--variable VARIABLE] [--prefix PREFIX]
                                workbook task context
mistral execution-create: error: argument context: invalid loads value: 'my_ctx.json'

which means we can only pass values as a string.

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
High
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
Nikolay Makhotkin
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Nikolay Makhotkin
Completed by
Nikolay Makhotkin

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:context_from_file,n,z

Addressed by: https://review.openstack.org/89862
    Add uploading context as a file

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.