Feature "default values for input" doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
High
|
Lingxian Kong | ||
Kilo |
Fix Released
|
High
|
Lingxian Kong | ||
Liberty |
Fix Released
|
High
|
Lingxian Kong |
Bug Description
Steps to reproduce:
1. Create file with wf definition, that contain 'input' keyword and provide some default value for it.
For example:
---
version: '2.0'
wf1:
type: reverse
input:
- greeting: "Hi"
tasks:
addressee:
action: std.echo output="John"
publish:
name: <% $.addressee %>
goodbye:
action: std.echo output="<% $.greeting %>, <% $.name %>"
requires: [addressee]
2. Execute "mistral workflow-create <file.yaml>"
Observed result:
A server error occurred. Please contact the administrator.
Traceback (most recent call last):
File "/usr/lib/
self.result = application(
File "/usr/local/
return self._call_app(env, start_response)
File "/usr/local/
return self._app(env, _fake_start_
File "/usr/local/
return self.applicatio
File "/usr/local/
return super(Pecan, self)._
File "/usr/local/
self.
File "/usr/local/
result = controller(*args, **kwargs)
File "/home/
return func(*args, **kwargs)
File "/home/
workflow_list = [Workflow.
File "/home/
setattr(e, 'input', ", ".join(input) if input else None)
TypeError: sequence item 0: expected string, dict found
Changed in mistral: | |
importance: | Undecided → High |
Changed in mistral: | |
assignee: | nobody → Lingxian Kong (kong) |
Changed in mistral: | |
milestone: | 1.0.0 → none |
Fix proposed to branch: master /review. openstack. org/178122
Review: https:/