Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide support for passing "=" in a string #6160

Open
sivudu47 opened this issue Mar 4, 2024 · 0 comments
Open

Provide support for passing "=" in a string #6160

sivudu47 opened this issue Mar 4, 2024 · 0 comments

Comments

@sivudu47
Copy link

sivudu47 commented Mar 4, 2024

alias yaml
`---
name: "launch_quasar"
action_ref: "quasar.quasar1"
description: "launch a quasar execution"
formats:

  • display: " "
    representation:
    • "{{ command }} {{ payload }}"
      result:
      format: |
      {{ execution.result.result }}
      `
      action yaml

name: quasar1
description: Action that takes an input parameter
runner_type: 'python-script'
entry_point: 'quasar1.py'
enabled: true
parameters:
command:
type: string
description: 'Input parameter'
required: true
payload:
type: string
description: 'Input parameter'
required: true
user:
type: "string"
description: "Slack user who triggered the action"
required: false
default: "{{action_context.api_user}}"

Representation used: "{{ command }} {{ payload }}"
Parameter defintion:
payload:
type: string
description: 'Input parameter'
required: true

We have an usecase where we need to pass a string with "=" in it for payload for some reason stackstorm is not allowing me to do that, if i pass such value it is not taking it as a seperate string and causing multiple issues

Issue is not oberved if we are putting ":" instead of "=" and also putting a space after "=" solves the issue

Have tried different things (using jinja template replace option and replaced "=" with "= " but i am getting internal server error.
if i am able to pass the yaml validation, i can have my own validation in action py file but the issue the execution is not even going to the python file.

basically this should be accepted by stackstorm quasar create cluster_name=weekly_nats

Screenshot 2024-03-04 at 11 35 28 AM
@sivudu47 sivudu47 changed the title Provide support for passing "=" as a string Provide support for passing "=" in a string Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant