Commit f0920a6f authored by Kirk Webb's avatar Kirk Webb

Small bug fix:

Don't expect there to be any routes in ipassign's output!
parent b8739ed1
......@@ -309,9 +309,12 @@ if (! $impotent) {
while (my ($vnode, $valhash) = each %vnodetab) {
my @ipinfo = @{$valhash->{'IPS'}};
my @routes = @{$valhash->{'routes'}};
my @ipifaces = map { @{$_}[2] . ":" . @{$_}[0] } @ipinfo;
my @routes = ();
if (defined($valhash->{'routes'})) {
@routes = @{$valhash->{'routes'}};
}
if (!$impotent) {
DBQueryFatal("update virt_nodes set ips='@ipifaces' ".
......
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