StackStorm / StackStorm/st2

Disabling the result section of an alias still calls chatops.post_result which fails

Open
#2,873 5 comments 0 reactions 1 assignee View on GitHub

@Kami is already working on this.

Since Aug 19, 2016.

chatops enhancement
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

cat alias_ping.yaml

name: "ping"
action_ref: "ec.host_pingable"
description: "Check if machine is pingable"
formats:
  - "ping {{server}}"
ack:
  enabled: false
result:
  enabled: false
Traceback (most recent call last):
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/python_action_wrapper.py", line 179, in <module>
    obj.run()
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2actions/runners/python_action_wrapper.py", line 116, in run
    output = action.run(**self._parameters)
  File "/opt/stackstorm/packs/chatops/actions/format_execution_result.py", line 42, in run
    raise Exception("Output of this template is disabled.")
Exception: Output of this template is disabled.

These expected failures make it difficult to monitor for other actual problems that cause failures.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.