Commit 4aeedc82 authored by Mike Hibler's avatar Mike Hibler

Deal with case where control net does not have an IP address.

parent 7d087132
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2005, 2006 University of Utah and the Flux Group.
# Copyright (c) 2005, 2006, 2010 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -199,7 +199,10 @@ if ($cmd eq "gc" && defined($pid)) {
" and pid='$pid' and eid='$eid'");
while (my ($vname,$ip) = $nodes_result->fetchrow_array) {
print NT_WRITER "$vname:$ip\n";
# not all devices have an IP address on the control net
if ($ip) {
print NT_WRITER "$vname:$ip\n";
}
}
}
......
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