Skip to content

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

Open
@JohnWelborn

Description

@JohnWelborn

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions