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

Okay, didn't get it right the first time!

parent fec93fd8
......@@ -176,7 +176,7 @@ if (! &ir_exists("/cmdline")) {
foreach (split("\n",&ir_get("/cmdline"))) {
($node,$cmdline) = /^([^ ]+)(.*)$/;
$cmdline =~ s/^ //;
$sth = $dbh->prepare("UPDATE nodes set def_boot_cmd_line = \"$cmdline\" where node_id = \"$node\"");
$sth = $dbh->prepare("UPDATE nodes set def_boot_cmd_line = \"$cmdline\" where node_id = \"$nodemap{$node}\"");
$sth->execute;
$sth->finish;
}
......@@ -187,7 +187,7 @@ if (! &ir_exists("/startup")) {
foreach (split("\n",&ir_get("/startup"))) {
($node,$cmdline) = /^([^ ]+)(.*)$/;
$cmdline =~ s/^ //;
$sth = $dbh->prepare("UPDATE nodes set startupcmd = \"$cmdline\", startstatus = \"none\" where node_id = \"$node\"");
$sth = $dbh->prepare("UPDATE nodes set startupcmd = \"$cmdline\", startstatus = \"none\" where node_id = \"$nodemap{$node}\"");
$sth->execute;
$sth->finish;
}
......@@ -199,7 +199,7 @@ foreach (split("\n",&ir_get("/rpms"))) {
($node,$rpms) = /^([^ ]+)(.*)$/;
$rpms =~ s/^ //;
$rpms =~ s/ /:/g;
$sth = $dbh->prepare("UPDATE nodes set rpms = \"$rpms\" where node_id = \"$node\"");
$sth = $dbh->prepare("UPDATE nodes set rpms = \"$rpms\" where node_id = \"$nodemap{$node}\"");
$sth->execute;
$sth->finish;
}
......
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