[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:
Prasad Katti 2017-10-24 13:01:33 -07:00 committed by Sloane Hertel
parent 6203e899f0
commit 8a9a9b84dd
2 changed files with 6 additions and 7 deletions

View file

@ -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'"
# ============================================================