fix in ovhapi module

This commit is contained in:
Paul 2021-02-18 00:19:18 +01:00
parent de99d576a5
commit 160a186f65

View File

@ -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)