Commit 381b5e3d authored by Leigh Stoller's avatar Leigh Stoller

Change to GENIRESPONSE_FORBIDDEN when silver is not "ready" for a snapshot,

so that user sees the message (but not us). I feel like we should add a new
response code: GENIRESPONSE_NOTREADY.
parent 867dccb1
......@@ -3043,7 +3043,7 @@ sub CreateImage($)
"Could not compute status for sliver");
}
if ($status ne "ready") {
return GeniResponse->Create(GENIRESPONSE_SEARCHFAILED, undef,
return GeniResponse->Create(GENIRESPONSE_FORBIDDEN, undef,
"sliver is not ready");
}
my $node_id = $sliver->resource_id();
......
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