Commit aa4d2b6c authored by Leigh Stoller's avatar Leigh Stoller

A couple of little tweaks. Trying to catch a race ...

parent de2e02e4
......@@ -334,7 +334,7 @@ sub GetCertificate($)
sub resource_type($) { return field($_[0], "type"); }
# Busy if status is working (start/restart/stop/reload/reboot).
sub Busy($) { return $_[0]->status eq "working" ? 1 : 0; }
sub Busy($) { return $_[0]->status() eq "working" ? 1 : 0; }
# Are any slivers imaging.
sub Imaging($) { return $_[0]->CheckSliverStates("imaging") ? 1 : 0; }
......
......@@ -586,6 +586,9 @@ sub TerminateSlices()
"Could not terminate slice $slice");
}
}
else {
print STDERR "TerminateSlices: $slice is busy\n";
}
$slice->UnLock();
skip:
$slice->Flush()
......
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