All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 4f501651 authored by Leigh B Stoller's avatar Leigh B Stoller

Tweak to create_instance error messages.

parent 62dd6e4f
......@@ -135,20 +135,26 @@ function Do_GetInstanceStatus()
if ($webtask->exitcode() == 26) {
$blob["reason"] = "Not enough free nodes, please try again later.";
$blob["reason"] .= "\n\n";
$blob["reason"] .= htmlentities($webtask->TaskValue("output"));
}
elseif ($webtask->exitcode() == 25) {
$blob["reason"] = "Not enough available bandwidth for a link.\n\n";
$blob["reason"] .= htmlentities($webtask->TaskValue("output"));
}
elseif ($webtask->exitcode() == 28) {
$blob["reason"] = "Your topology could not be mapped to physical ".
"resource.\n\n";
$blob["reason"] .= htmlentities($webtask->TaskValue("output"));
}
elseif ($webtask->exitcode() == 1) {
#
# This is GENIRESPONSE_BADARGS which typically means an error
# in the input rspec, something the user must have put in it.
#
$blob["reason"] = "Your topology source contains invalid ".
"values.\n\n";
}
else {
$blob["reason"] = htmlentities($webtask->TaskValue("output"));
$blob["reason"] = "";
}
$blob["reason"] .= htmlentities($webtask->TaskValue("output"));
}
SPITAJAX_RESPONSE($blob);
}
......
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