Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!1611Skip rendering and reloading bind if there are no records, fixes #6350
Pipeline #12380 passed
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment