From 7058855cfe285df2dd93c1ee20d7058be21d8815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 18 Oct 2022 09:13:53 +0300 Subject: [PATCH] Fix cornercase handling for primary --- bind-sidecar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bind-sidecar.py b/bind-sidecar.py index 6c95b10..0831768 100755 --- a/bind-sidecar.py +++ b/bind-sidecar.py @@ -30,7 +30,8 @@ active_zones = set() def update_config(): - master = socket.gethostbyname("bind-primary") + master = socket.gethostbyname("bind-primary") if args.replica else None + with open(PATH_CONFIG + ".part", "w") as fh: for zone in active_zones: path = PATH_ZONEFILE % zone