[2.8] Fix ec2_eip parameter logic

device_id is required when private_ip_address is set, but the reverse is not true.

(cherry picked from commit 6273574eb4)

Signed-off-by: flowerysong <junk+github@flowerysong.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
flowerysong 2019-04-12 07:40:25 -04:00 committed by Toshio Kuratomi
parent d0f74f495b
commit 2fbf4ca99c
2 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- In ec2_eip, device_id is required when private_ip_address is set, but the reverse is not true (https://github.com/ansible/ansible/pull/55194).

View file

@ -388,9 +388,9 @@ def main():
module = AnsibleModule(
argument_spec=argument_spec,
supports_check_mode=True,
required_together=[
['device_id', 'private_ip_address'],
],
required_by={
'private_ip_address': ['device_id'],
},
)
if not HAS_BOTO: