Commit b39d33f9 authored by anarcat's avatar anarcat Committed by Adrian Rossouw

handle the "100 edits per day" case gracefully

we error, basically, instead of generating an invalid zonefile
parent 767c8827
......@@ -151,7 +151,12 @@ class provisionService_dns extends provisionService {
return $today . '00';
} else {
$index = substr($serial, 8, 2); # Get the index part
return $date . sprintf('%02d', $index+1);
if ($index >= 99) {
drush_set_error("serial number overflow");
} else {
$index++;
}
return $date . sprintf('%02d', $index);
}
}
......
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