[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:
parent
d0f74f495b
commit
2fbf4ca99c
2 changed files with 5 additions and 3 deletions
2
changelogs/fragments/55194-ec2_eip-required_together.yml
Normal file
2
changelogs/fragments/55194-ec2_eip-required_together.yml
Normal 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).
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue