Commit 9920e141 authored by anarcat's avatar anarcat Committed by anarcat

adapt delete_host() to the order of arguments in guess_zone()

parent 7ae1942c
......@@ -280,9 +280,9 @@ class provisionService_dns extends provisionService {
$host = $this->context->uri;
}
$parts = $this->guess_zone($host);
$this->delete_record($parts[0], $parts[1], 'A');
if ($this->count_records($parts[0], null, array('NS', 'SOA'))) {
$this->delete_zone($parts[0]);
$this->delete_record($parts[1], $parts[0], 'A');
if ($this->count_records($parts[1], null, array('NS', 'SOA'))) {
$this->delete_zone($parts[1]);
}
}
......
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