manageiq
manageiq copied to clipboard
[WIP] Fix inconsistent dialog input for Workflows
Workflows run for a dynamic dialog have their dialog_values nested under a top-level {:dialog => {}}
key, workflows run as a Service Template Entrypoint should have the same format.
Before this the input from a dialog would be passed like:
Running state: [CloneTemplate] with input [{"dialog_vm_name"=>"ag-prov-test", "dialog_provider"=>4, "dialog_verify_ssl"=>"false", "dialog_source_template"=>"vm-64"}]...
Which would cause e.g. https://github.com/ManageIQ/workflows-examples/blob/master/provision-vm-service/provision-vm.asl#L19-L23 to fail to find the values.
This way the input format should be the same as workflows run via a dynamic dialog e.g. https://github.com/ManageIQ/workflows-examples/blob/master/provision-vm-service/list-providers.asl#L17
WIP pending specs