From: Adam D. Barratt Date: Mon, 28 Jan 2019 15:05:26 +0000 (+0000) Subject: dsa-check-soas: fix error when 0 (or more than 1) records returned X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3722e31f9385e9a1edad92073167c7122dbcfcb9;hp=3722e31f9385e9a1edad92073167c7122dbcfcb9;p=mirror%2Fdsa-nagios.git dsa-check-soas: fix error when 0 (or more than 1) records returned 3956f21a moved some processing into resolve_ns. When an unexpected number of records is returned, an attempt is made to update the list of warnings, which is not within resolve_ns()'s local scope. The result is an "undefined local variable" error. Resolve this by explicitly marking the "warnings" list as in instance scope. (Although it is not currently a problem, the "OKs" list is also similarly marked, for future-proofing.) Signed-off-by: Adam D. Barratt ---