Commit abea25b0 authored by Mac Newbold's avatar Mac Newbold

Fix last fix to nfree... turns out that if you alias a table ('from nodes as...

Fix last fix to nfree... turns out that if you alias a table ('from nodes as n') that the old name ('nodes') is no longer available, and you _must_ use the new alias ('n') to refer to it.
parent b8e25674
......@@ -211,8 +211,8 @@ foreach my $n (@freed_nodes) {
#
my $result =
DBQueryFatal("select control_net,nt.osid,nt.pxe_boot_path, " .
" nodes.def_boot_osid,nodes.def_boot_path, ".
" node_types.isvirtnode ".
" n.def_boot_osid,n.def_boot_path, ".
" nt.isvirtnode ".
" from node_types as nt " .
"left join nodes as n on n.type=nt.type " .
"where node_id='$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