Commit c961d220 authored by Mac Newbold's avatar Mac Newbold
Browse files

Small bug fixes

parent 461ec4cf
......@@ -57,7 +57,7 @@ foreach (split("\n",$raw)) {
$nodetype{$node} = $type;
if (! defined($ostype{$type})) {
$sth = $dbh->prepare("SELECT osid from node_types ".
"where machinetype=\"$type\"");
"where type=\"$type\"");
$rr = $sth->execute;
if ($rr == 0) {
push(@ERRORS,"Invalid type $type");
......
......@@ -140,16 +140,16 @@ for ($i = 0; $i < $db_result->numrows; $i++) {
if (defined($row{'def_boot_path'})) {
my $path = $row{'def_boot_path'};
if ($path ne "" && ! -e $path) {
die("File $path for node $node does not exist!");
}
#if ($path ne "" && ! -e $path) {
# die("File $path for node $node does not exist!");
#}
}
if (defined($row{'next_boot_path'})) {
my $path = $row{'next_boot_path'};
if ($path ne "" && ! -e $path) {
die("File $path for node $node does not exist!");
}
#if ($path ne "" && ! -e $path) {
# die("File $path for node $node does not exist!");
#}
}
#
......
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