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

Fix query for default OS. I thought I fixed this already, but I guess

not.
parent 31630ccd
...@@ -56,7 +56,7 @@ foreach (split("\n",$raw)) { ...@@ -56,7 +56,7 @@ foreach (split("\n",$raw)) {
$type = $info[1]; $type = $info[1];
$nodetype{$node} = $type; $nodetype{$node} = $type;
if (! defined($ostype{$type})) { if (! defined($ostype{$type})) {
$sth = $dbh->prepare("SELECT osid from os_info ". $sth = $dbh->prepare("SELECT osid from node_types ".
"where machinetype=\"$type\""); "where machinetype=\"$type\"");
$rr = $sth->execute; $rr = $sth->execute;
if ($rr == 0) { if ($rr == 0) {
......
Supports Markdown
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