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

Watch for temporary cluster disable before calling for prediction.

parent 47380550
<?php
#
# Copyright (c) 2000-2017 University of Utah and the Flux Group.
# Copyright (c) 2000-2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -741,6 +741,13 @@ function Do_ReservationInfo()
SPITAJAX_ERROR(-1, "No such cluster");
return;
}
#
# This can be turned off temporarily, say during maintenance.
#
if (!$aggregate->reservations()) {
SPITAJAX_ERROR(-1, "Reservations are disabled");
return;
}
$urn = $aggregate->urn();
$sopts = "-a '$urn'";
$popts = "";
......
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