1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix required_if in cloudflare_dns (#54225)

Fixes: #54223
This commit is contained in:
Mark Zhitomirski 2019-03-22 15:17:51 +03:00 committed by Abhijeet Kasurde
parent 907765a3a5
commit eb1d52ebc6

View file

@ -789,13 +789,12 @@ def main():
zone=dict(type='str', required=True, aliases=['domain']),
),
supports_check_mode=True,
required_if=([
required_if=[
('state', 'present', ['record', 'type', 'value']),
('state', 'absent', ['record']),
('type', 'SRV', ['proto', 'service']),
('type', 'TLSA', ['proto', 'port']),
],
),
)
if module.params['type'] == 'SRV':