Refresh zone after update
This commit is contained in:
parent
4b023a01a3
commit
ceadfc1b19
3 changed files with 4 additions and 2 deletions
|
@ -47,6 +47,8 @@ class odi6:
|
|||
self._update_a_record(ipv4)
|
||||
if ipv6:
|
||||
self._update_aaaa_record(ipv6)
|
||||
result = self.ovh.post(f"/domain/zone/{self.config['domain']}/refresh")
|
||||
self._log.debug(f"Zone refresh result: {result}")
|
||||
|
||||
def _update_a_record(self, ipv4):
|
||||
a_records = self.ovh.get(
|
||||
|
|
|
@ -7,7 +7,7 @@ Homepage = "https://susurrando.com"
|
|||
|
||||
[project]
|
||||
name = "odi6"
|
||||
version = "0.0.6"
|
||||
version = "0.0.7"
|
||||
description = "Update Dynamic Host IPv6 in OVH"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "Antonio J. Delgado", email = "antonio@susurrando.com" }]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = odi6
|
||||
version = 0.0.6
|
||||
version = 0.0.7
|
||||
|
||||
[options]
|
||||
packages = odi6
|
||||
|
|
Loading…
Reference in a new issue