Commit 53f4b824 authored by Christopher Alfeld's avatar Christopher Alfeld

Moved freeing of resources to the last step.

parent 282eee4f
......@@ -72,11 +72,6 @@ while {[set machine [sql fetchrow $DB]] != {}} {
lappend machines $machine
}
if {[catch "exec $nfree $pid $eid >@ $logFp 2>@ $logFp" err]} {
outs stderr "Error freeing resources. ($err)"
exit 1
}
outs "Resetting VLANs"
if {[catch "exec $resetvlans $machines >@ $logFp 2>@ $logFp" err]} {
outs stderr "Error reseting vlans ($err)"
......@@ -87,3 +82,10 @@ outs "Removing delay entries"
foreach machine $machines {
sql exec $DB "delete from delays where node_id = \"$machine\""
}
if {[catch "exec $nfree $pid $eid >@ $logFp 2>@ $logFp" err]} {
outs stderr "Error freeing resources. ($err)"
exit 1
}
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