Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
5a71702e
Commit
5a71702e
authored
Jul 09, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow lookup by slice_uuid.
parent
b7fb16a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
www/aptui/status.php
www/aptui/status.php
+9
-3
No files found.
www/aptui/status.php
View file @
5a71702e
...
...
@@ -53,11 +53,12 @@ $isfadmin = 0;
#
# Verify page arguments.
#
$reqargs
=
OptionalPageArguments
(
"uuid"
,
PAGEARG_STRING
,
$reqargs
=
OptionalPageArguments
(
"uuid"
,
PAGEARG_UUID
,
"slice_uuid"
,
PAGEARG_UUID
,
"maxextend"
,
PAGEARG_INTEGER
,
"oneonly"
,
PAGEARG_BOOLEAN
);
if
(
!
isset
(
$uuid
))
{
if
(
!
(
isset
(
$uuid
)
||
isset
(
$slice_uuid
)
))
{
SPITHEADER
(
1
);
echo
"<div class='align-center'>
<p class='lead text-center'>
...
...
@@ -72,7 +73,12 @@ if (!isset($uuid)) {
#
# See if the instance exists. If not, redirect back to the create page
#
$instance
=
Instance
::
Lookup
(
$uuid
);
if
(
isset
(
$uuid
))
{
$instance
=
Instance
::
Lookup
(
$uuid
);
}
else
{
$instance
=
Instance
::
LookupBySlice
(
$slice_uuid
);
}
if
(
!
$instance
)
{
SPITHEADER
(
1
);
echo
"<div class='align-center'>
...
...
Write
Preview
Markdown
is supported
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