Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e7590e84
Commit
e7590e84
authored
Jun 02, 2017
by
Leigh B Stoller
Browse files
Error if no backend clusters support reservations.
parent
31c49de7
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/aptui/list-reservations.php
View file @
e7590e84
...
...
@@ -65,6 +65,10 @@ else {
$amlist
[
$aggregate
->
nickname
()]
=
$aggregate
->
urn
();
}
}
if
(
!
count
(
$amlist
))
{
SPITUSERERROR
(
"No clusters support reservations."
);
exit
();
}
echo
"<script type='text/plain' id='amlist-json'>
\n
"
;
echo
htmlentities
(
json_encode
(
$amlist
));
echo
"</script>
\n
"
;
...
...
www/aptui/reserve.php
View file @
e7590e84
...
...
@@ -105,6 +105,10 @@ elseif (isset($debug) && $debug) {
else
{
$ams
=
Aggregate
::
SupportsReservations
();
}
if
(
!
count
(
$ams
))
{
SPITUSERERROR
(
"No clusters support reservations."
);
exit
();
}
$amlist
=
array
();
while
(
list
(
$index
,
$aggregate
)
=
each
(
$ams
))
{
$urn
=
$aggregate
->
urn
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment