Commit 0c23eada authored by Leigh B Stoller's avatar Leigh B Stoller

Instance must be in the ready state when cloning it, but only the

user needs to see the error.
parent 140ff457
......@@ -321,6 +321,10 @@ if ($snap) {
if (!defined($instance)) {
fatal("Could not look up instance $uuid");
}
if ($instance->status() ne "ready") {
$errors{"error"} = "Instance must be in the ready state for cloning";
UserError();
}
if ($instance->AggregateList() != 1) {
$errors{"error"} = "Must be only one aggregate to snapshot";
UserError();
......
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