Commit 3335831f authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

sql import: create zone if not existing

parent ffaad6ee
...@@ -124,7 +124,10 @@ def zone_template(zone): ...@@ -124,7 +124,10 @@ def zone_template(zone):
def knotc_send(type, zone): def knotc_send(type, zone):
global slave_mode global slave_mode
if type == 0: if type == 0:
knotc_single("zone-reload" if not slave_mode else "zone-refresh", zone) try:
knotc_single("zone-reload" if not slave_mode else "zone-refresh", zone)
except:
knotc_send(1, zone)
else: else:
try: try:
knotc_single("conf-begin") knotc_single("conf-begin")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment