mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-25 09:40:23 -07:00
[ec2-ami] Use required_if with state parameter (#32009)
* [ec2-ami] Use required_if with state parameter * Update failure msg on delete ami with no image_id task in integration test
This commit is contained in:
parent
6203e899f0
commit
8a9a9b84dd
2 changed files with 6 additions and 7 deletions
|
@ -158,7 +158,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "result.failed"
|
||||
- "result.msg == 'image_id needs to be an ami image to registered/delete'"
|
||||
- "result.msg == 'state is absent but the following are missing: image_id'"
|
||||
|
||||
# ============================================================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue