Commit cf89bd50 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor tweak to let robots pass through unmolested.

parent 93f0dc50
......@@ -183,6 +183,7 @@ while (my %row = $db_result->fetchhash()) {
my $node = $row{'node_id'};
my $osid = $row{'def_boot_osid'};
my $type = $row{'type'};
my $class = $row{'class'};
my $subnode = $row{'issubnode'};
my $virtnode = $row{'isvirtnode'};
my $jailnode = $row{'jailflag'};
......@@ -201,6 +202,11 @@ while (my %row = $db_result->fetchhash()) {
next;
}
}
elsif ($class eq "robot") {
print "Skipping os_setup for $node cause its a robot.\n";
TBSetNodeAllocState($node, TBDB_ALLOCSTATE_RES_READY);
SetNodeBootStatus($node, NODEBOOTSTATUS_OKAY);
}
elsif ($subnode) {
print "Will skip subnode $node ISUP wait.\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