added a refresh to ovh dns management
This commit is contained in:
parent
5c5f5208f9
commit
b79efa21ee
@ -48,6 +48,8 @@ def domain_record_present(name,
|
|||||||
|
|
||||||
cur_zone_state = __salt__['ovhapi.domain_get_zone'](zone=zone)
|
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'](
|
res = __salt__['ovhapi.domain_post_record'](
|
||||||
zone=zone,
|
zone=zone,
|
||||||
subDomain=recordname,
|
subDomain=recordname,
|
||||||
@ -62,4 +64,4 @@ def domain_record_present(name,
|
|||||||
}
|
}
|
||||||
ret['comment'] = f'Result is {res}'
|
ret['comment'] = f'Result is {res}'
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user