Commit e99ded80 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix insufficient bandwidth regex.

parent 21cf1a82
......@@ -2220,7 +2220,8 @@ sub GetTicketAuxAux($$$$$$$$$$)
$violations .= $line;
# Attempt to parse the violations into something human readable.
if ($line =~ /no_connect:\s*1/ || $line =~ /bandwidth:\s*1/) {
if ($line =~ /no_connect:\s*\d*/ ||
$line =~ /bandwidth:\s*\d*/) {
$errorstr = "Not enough bandwidth to connect some nodes";
$errorcode = GENIRESPONSE_INSUFFICIENT_BANDWIDTH();
}
......
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