From b79efa21eea31f68532803facf2acf23865c8848 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Mon, 9 Nov 2020 23:10:56 +0100 Subject: [PATCH] added a refresh to ovh dns management --- states/_states/ovhapi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/states/_states/ovhapi.py b/states/_states/ovhapi.py index faf2698..80f2dbc 100644 --- a/states/_states/ovhapi.py +++ b/states/_states/ovhapi.py @@ -48,6 +48,8 @@ def domain_record_present(name, cur_zone_state = __salt__['ovhapi.domain_get_zone'](zone=zone) + cur_zone_refresh = __salt__['ovhapi.domain_refresh_zone'](zone=zone) + res = __salt__['ovhapi.domain_post_record']( zone=zone, subDomain=recordname, @@ -62,4 +64,4 @@ def domain_record_present(name, } ret['comment'] = f'Result is {res}' - return ret \ No newline at end of file + return ret