From a171f279db9dd79b05d0c410b46b421bee15c211 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 5 May 2025 14:56:19 +0300 Subject: [PATCH] add debug --- ovh_dns_ensure/ovh_dns_ensure.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ovh_dns_ensure/ovh_dns_ensure.py b/ovh_dns_ensure/ovh_dns_ensure.py index 002a854..f60faa6 100755 --- a/ovh_dns_ensure/ovh_dns_ensure.py +++ b/ovh_dns_ensure/ovh_dns_ensure.py @@ -68,9 +68,14 @@ class OvhDnsEnsure: ) self._log.debug(result) elif self.current_state == 'different': - count = 0 + count = 1 for record in self.records: - if count > 0: + self._log.debug( + "Processing existing record %s of %s...", + count, + len(self.records) + ) + if count > 1: if not self.config['dummy']: self._log.debug( 'Deleting record %s',