Skip to content

Chatops keyword parameter passing broken #4707

Open
@vincent-legoll

Description

@vincent-legoll
SUMMARY

I upgraded stackstorm to the new 3.0.1 and our way of calling slack chatops with named parameter is not working any more.

!newbuild name=truc gittag=c4deadbeefd03266f1ba7042b14b31a release=unstable github_packaging_branch=10.32

output:

I'm sorry, Dave. I'm afraid I can't do that.
Command "newbuild name=truc gittag=c4deadbeefd03266f1ba7042b14b31a release=unstable github_packaging_branch=10.32" doesn't match format string "newbuild {{name=truc}} {{gittag}} {{release}} {{github_packaging_branch}}"

whereas the following is OK:

!newbuild truc c4deadbeefd03266f1ba7042b14b31a unstable "10.32"

This was working fine before.

ISSUE TYPE
  • Bug Report
STACKSTORM VERSION

st2 3.0.1, on Python 2.7.5

OS / ENVIRONMENT / INSTALL METHOD

Bare-metal CentOS 7 + EPEL (up to date)

STEPS TO REPRODUCE
!say phrase=toto in color=red
EXPECTED RESULTS
I have it covered. Your execution ID is 5cfa92a935e378177eae1d39 (details available at https://stackstorm.novalocal/#/history/5cfa92a935e378177eae1d39/general)
@Vincent:
Noop
Action core.noop completed.
status : succeeded
execution: 5cfa92a935e378177eae1d39

web_url: https://stackstorm.novalocal/#/history/5cfa92a935e378177eae1d39/general

Took 0.459185\u03BCs to complete.

result :
--------
failed : False
 Show more
ACTUAL RESULTS
@You: I'm sorry, Dave. I'm afraid I can't do that.
Command "say phrase=toto in color=red" doesn't match format string "say {{phrase}} in {{color}}"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions