From 952d6872d3ba655001cbd3e1eabc2785b09e2021 Mon Sep 17 00:00:00 2001 From: Kale Date: Mon, 2 Aug 2021 08:30:58 -0700 Subject: [PATCH] Update 'maker_rpz.py' --- maker_rpz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maker_rpz.py b/maker_rpz.py index cc6997f..1dea1f5 100644 --- a/maker_rpz.py +++ b/maker_rpz.py @@ -32,9 +32,9 @@ def RPZbuilding(excluded,incoming,output): for line in lines: if line.strip() and not line in exclude and not line.startswith(';'): f.write('\n'.join([line + ' CNAME .\n'])) - if line.startswith((';','$','@',' IN')): + elif line.startswith((';','$','@',' IN')): f.write('\n'.join([line + '\n'])) - if not line.strip(): + elif not line.strip(): f.write('\n'.join([line + '\n'])) f.close()