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

Allow a target cluster argument when creating a new reservation.

parent 2a1ab5af
......@@ -55,6 +55,8 @@ if ($edit) {
SPITUSERERROR("Missing arguments for edit mode");
exit();
}
}
if (isset($cluster)) {
$aggregate = Aggregate::LookupByNickname($cluster);
if (!$aggregate) {
SPITUSERERROR("No such cluster: $cluster");
......@@ -100,7 +102,7 @@ echo htmlentities(json_encode($plist));
echo "</script>\n";
# List of clusters.
if ($edit) {
if ($edit || isset($aggregate)) {
$ams = array($aggregate);
}
elseif (isset($debug) && $debug) {
......
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