get differnet types too
This commit is contained in:
parent
da95420ecd
commit
84df1271aa
1 changed files with 3 additions and 3 deletions
|
@ -95,12 +95,12 @@ class OvhDnsEnsure:
|
||||||
|
|
||||||
def _get_current_state(self):
|
def _get_current_state(self):
|
||||||
params = {
|
params = {
|
||||||
"fieldType": self.config['type'],
|
# "fieldType": self.config['type'],
|
||||||
"subDomain": self.config['subdomain']
|
"subDomain": self.config['subdomain']
|
||||||
}
|
}
|
||||||
self._log.debug(
|
self._log.debug(
|
||||||
"Getting all records with type '%s' and subdomain '%s'...",
|
"Getting all records with subdomain '%s'...",
|
||||||
self.config['type'],
|
# self.config['type'],
|
||||||
self.config['subdomain']
|
self.config['subdomain']
|
||||||
)
|
)
|
||||||
self.records = self.ovh.get(f"/domain/zone/{self.config['zone']}/record", **params)
|
self.records = self.ovh.get(f"/domain/zone/{self.config['zone']}/record", **params)
|
||||||
|
|
Loading…
Reference in a new issue