diff --git a/states/_modules/ovhapi.py b/states/_modules/ovhapi.py index 0a64fd7..456c277 100644 --- a/states/_modules/ovhapi.py +++ b/states/_modules/ovhapi.py @@ -150,7 +150,7 @@ def domain_put_record(zone="", for rec in records: res = client.get(f'/domain/zone/{zone}/record/{rec}') if res['target'] == target: - req = client.put(f'/domain/zone/{zone}/record/{rec["id"]}', + req = client.put(f'/domain/zone/{zone}/record/{rec}', subDomain=subDomain, target=target, ttl=ttl)