Commit e8246510 authored by Leigh B Stoller's avatar Leigh B Stoller

Handle CreateImage() permission denied more gracefully, as for

tainted nodes.
parent 5eec1276
......@@ -458,7 +458,8 @@ sub DoSnapshot()
$errmsg = "Could not create image: " . $response->output() . "\n";
$errcode = 1
if ($response->code() == GENIRESPONSE_BUSY ||
$response->code() == GENIRESPONSE_SERVER_UNAVAILABLE);
$response->code() == GENIRESPONSE_SERVER_UNAVAILABLE ||
$response->code() == GENIRESPONSE_FORBIDDEN);
$instance->SetStatus($old_status);
goto uerror;
}
......
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