Skip to content

Commit

Permalink
Changed the webhook to work live or cold.
Browse files Browse the repository at this point in the history
  • Loading branch information
lizsalmon committed Dec 19, 2024
1 parent c9420a0 commit 30f6a62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 15 additions & 0 deletions rules/debugging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: "log_webhook_payload"
pack: "default"
description: "Logs the incoming webhook payload for debugging purposes."
enabled: true

trigger:
type: "core.st2.webhook"
parameters:
url: "migrate-server"

action:
ref: "core.local"
parameters:
cmd: "echo '{{ trigger.body }}' >> /var/log/st2/migrate_server_payload.log"
3 changes: 1 addition & 2 deletions rules/webhook.server.migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ action:
ref: "stackstorm_openstack.server.migrate"
parameters:
server_id: "{{ trigger.body.server_id }}"
cloud_account: "dev"
live: true
cloud_account: "{{ trigger.body.cloud_account }}"

0 comments on commit 30f6a62

Please sign in to comment.