Skip to content

Commit

Permalink
Update parameter type in quay_notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Hervé Quatremain committed Oct 9, 2024
1 parent 604aa67 commit 015a085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions plugins/modules/quay_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
template:
description:
- JSON data for the body content of the webhook POST method.
type: str
type: jsonarg
room_id:
description:
- Chat room ID required for the HipChat notification method.
Expand Down Expand Up @@ -240,7 +240,7 @@
method: webhook
config:
url: https://webhook.example.com/webhook/12345
template: "{{ lookup('file', 'post.json') | string }}"
template: "{{ lookup('ansible.builtin.file', 'post.json') }}"
state: present
quay_host: https://quay.example.com
quay_token: vgfH9zH5q6eV16Con7SvDQYSr0KPYQimMHVehZv7
Expand All @@ -256,7 +256,7 @@
method: webhook
config:
url: https://webhook.example.com/webhook/12345
template: "{{ lookup('file', 'post.json') | string }}"
template: "{{ lookup('ansible.builtin.file', 'post.json') }}"
state: present
quay_host: https://quay.example.com
quay_token: vgfH9zH5q6eV16Con7SvDQYSr0KPYQimMHVehZv7
Expand Down Expand Up @@ -369,7 +369,7 @@ def main():
# Slack and webhook notification
url=dict(),
# webhook notification
template=dict(),
template=dict(type="jsonarg"),
# HipChat notification
room_id=dict(),
notification_token=dict(no_log=True),
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/targets/quay_tag/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
fake_image: quay.io/prometheus/busybox:latest
expiration: "{{ lookup('pipe', 'date -d now+1year +%Y%m%d0132.12') }}"
expiration: "{{ lookup('ansible.builtin.pipe',
'date -d now+1year +%Y%m%d0132.12') }}"
...

0 comments on commit 015a085

Please sign in to comment.