Fix cornercase handling for primary
Some checks reported errors
continuous-integration/drone Build was killed
Some checks reported errors
continuous-integration/drone Build was killed
This commit is contained in:
parent
e13ef93836
commit
7058855cfe
@ -30,7 +30,8 @@ active_zones = set()
|
|||||||
|
|
||||||
|
|
||||||
def update_config():
|
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:
|
with open(PATH_CONFIG + ".part", "w") as fh:
|
||||||
for zone in active_zones:
|
for zone in active_zones:
|
||||||
path = PATH_ZONEFILE % zone
|
path = PATH_ZONEFILE % zone
|
||||||
|
Loading…
Reference in New Issue
Block a user