Commit 4e36ffb3 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch '6350-skip-render-empty-zone' into 'develop'

Skip rendering and reloading bind if there are no records, fixes #6350

Closes #6350

See merge request ispconfig/ispconfig3!1611
parents fa9019ac 661fac24
Pipeline #12391 passed with stage
in 15 seconds
......@@ -323,6 +323,10 @@ class bind_plugin {
}
}
}
else {
$app->log("DNS zone[".$zone['origin']."] has no records yet, skip...", LOGLEVEL_DEBUG);
return;
}
$tpl->setLoop('zones', $records);
$filename = $dns_config['bind_zonefiles_dir'].'/' . $this->zone_file_prefix() . str_replace("/", "_", substr($zone['origin'], 0, -1));
......
Supports Markdown
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