Commit 18275ba7 authored by Mac Newbold's avatar Mac Newbold
Browse files

Fixed it to not call resetvlans with empty list.

parent 2521c62f
......@@ -57,7 +57,7 @@ while (@row = $sth->fetchrow_array) {
$sth->finish;
&tbs_out("Resetting VLANs\n");
if (&tbs_exec("resetvlans " . join(" ",@nodes))) {
if (@nodes && &tbs_exec("resetvlans " . join(" ",@nodes))) {
&tbs_out("Failed to reset VLANs\n");
exit(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