Commit 4a27d831 authored by Mac Newbold's avatar Mac Newbold
Browse files

Reset def_boot_osid after a node is freed. Stops it from looking for old...

Reset def_boot_osid after a node is freed. Stops it from looking for old special kernels that might not exist anymore.
parent 67cc9252
......@@ -150,8 +150,9 @@ foreach my $n (@node_names) {
&& $error++);
# And clean out various tidbits from the nodes table.
$cmd = "update nodes set def_boot_cmd_line='',def_boot_path='',".
"startupcmd='',rpms='',deltas='',tarballs='' where node_id='$n'";
$cmd = "update nodes set def_boot_osid='', def_boot_cmd_line='',".
"def_boot_path='',startupcmd='',rpms='',deltas='',tarballs=''".
" where node_id='$n'";
$sth = $dbh->query($cmd)
|| (print "Failed Command:\n$cmd\nError string is:".$dbh->errstr."\n"
&& $error++);
......
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