From 3643e2e8ded97425d719f885b8a482a6d9cc18c6 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Mon, 16 Dec 2024 13:07:59 -0500 Subject: [PATCH] remove BIND.zoneFileFound --- providers/bind/bindProvider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/bind/bindProvider.go b/providers/bind/bindProvider.go index 583693141a..c7e18c1930 100644 --- a/providers/bind/bindProvider.go +++ b/providers/bind/bindProvider.go @@ -127,7 +127,7 @@ type bindProvider struct { directory string filenameformat string zonefile string // Where the zone data is e texpected - zoneFileFound bool // Did the zonefile exist? + //zoneFileFound bool // Did the zonefile exist? } // GetNameservers returns the nameservers for a domain. @@ -183,14 +183,14 @@ func (c *bindProvider) GetZoneRecords(domain string, meta map[string]string) (mo content, err := os.ReadFile(c.zonefile) if os.IsNotExist(err) { // If the file doesn't exist, that's not an error. Just informational. - c.zoneFileFound = false + //c.zoneFileFound = false fmt.Fprintf(os.Stderr, "File does not yet exist: %q (will create)\n", c.zonefile) return nil, nil } if err != nil { return nil, fmt.Errorf("can't open %s: %w", c.zonefile, err) } - c.zoneFileFound = true + //c.zoneFileFound = true zonefileName := c.zonefile