From cfbc74fff0b8782c675a3d6b87234f18f72bf5b8 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Thu, 4 Feb 2021 01:03:00 +0100 Subject: [PATCH] fix on external dns management --- states/_states/ovhapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/states/_states/ovhapi.py b/states/_states/ovhapi.py index c629d41..8294c1a 100644 --- a/states/_states/ovhapi.py +++ b/states/_states/ovhapi.py @@ -52,7 +52,8 @@ def domain_record_present(name, if cur_record is not None: res = __salt__['ovhapi.domain_put_record'](zone=zone, fieldType=recordtype, - subDomain=recordname) + subDomain=recordname, + target=target) new_zone_state = __salt__['ovhapi.domain_get_zone'](zone=zone) ret['changes'] = {