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