From 160a186f654a557bfc4adda18167ff5824c6aa95 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Thu, 18 Feb 2021 00:19:18 +0100 Subject: [PATCH] fix in ovhapi module --- states/_modules/ovhapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)