Fix required_if in cloudflare_dns (#54225)

Fixes: #54223
pull/54244/head
Mark Zhitomirski 5 years ago committed by Abhijeet Kasurde
parent 907765a3a5
commit eb1d52ebc6

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

Loading…
Cancel
Save