You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across an issue today, while working on action aliases for aws. I took sample action alias from aws pack (ec2_get_all_instances.yaml):
---
name: "ec2_get_all_instances"
pack: "aws"
description: "get all instances"
action_ref: "aws.ec2_get_all_instances"
formats:
- "aws ec2 get"
ack:
enabled: true
append_url: false
format: "ack"
result:
extra:
slack:
color: "#00ad52" # aka Slack 'good'
footer: "AWS Pack"
format: |
{% if execution.status == 'succeeded' %}
{% for line in execution.result.result %}
{% for ec2 in line -%}
{{ ec2.id }} - {{ ec2.state }} -- {{ ec2.tags.Name }} -- {{ ec2.ip_address }}
{% endfor %}
{% endfor %}
{% else %}
Error: {{execution.result.stdout}}{~}See {{execution.id}} for more details.
{% endif %}
Only changed ack enabled to true and added format to it. Had to make those changes as I was seeing an error: ERROR: 'ActionAliasExecution' object has no attribute 'message'
Next tried to execute with following result:
st2 action-alias execute "aws ec2 get"
Started execution, id '598b23e7f1509608cca9cf77'
ack
I would normally see instance id followed by state etc? or at least an error? It worked for me when I was testing hubot, but I don't think it has anything to do with the actual bot?
Please help! Thanks :)
The text was updated successfully, but these errors were encountered:
Hi Folks,
I came across an issue today, while working on action aliases for aws. I took sample action alias from aws pack (ec2_get_all_instances.yaml):
Only changed ack enabled to true and added format to it. Had to make those changes as I was seeing an error:
ERROR: 'ActionAliasExecution' object has no attribute 'message'
Next tried to execute with following result:
I would normally see instance id followed by state etc? or at least an error? It worked for me when I was testing hubot, but I don't think it has anything to do with the actual bot?
Please help! Thanks :)
The text was updated successfully, but these errors were encountered: