How do you specify a **kwargs argument within a mistral yaml

56 views
Skip to first unread message

dmar...@gmail.com

unread,
Feb 7, 2017, 5:10:43 PM2/7/17
to StackStorm
I have a StackStorm action that takes **kwargs and want to know how I can specify them as inputs within a mistral yaml?  In the following example, env_name, es_version and java_version would be what I need to specify as **kwargs.  I know the yaml snippet is wrong.  What is the right way?

SS action
      def create_service(name, servicetype, datacenters=[], servicelevel='Test', scale=1, parent=None, **kwargs):

yaml snippet
create_service:
type: direct
tasks:
create:
action: example.service.workflow.create_service
input:
name: "name"
servicetype: "servicetype"
datacenters: ["datacenter"]

servicelevel: "Test"
scale: 1

env_name: "env_name"
es_version: "es_version"
java_version: "java_version"
Reply all
Reply to author
Forward
0 new messages