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
beec358e
Commit
beec358e
authored
Sep 09, 2014
by
Leigh B Stoller
Browse files
Make OpenStack default profile in CloudLab UI.
parent
7170f989
Changes
1
Show whitespace changes
Inline
Side-by-side
www/aptui/instantiate.php
View file @
beec358e
...
...
@@ -53,8 +53,14 @@ $optargs = OptionalPageArguments("create", PAGEARG_STRING,
"verify"
,
PAGEARG_STRING
,
"project"
,
PAGEARG_PROJECT
,
"formfields"
,
PAGEARG_ARRAY
);
$profile_default
=
"OneVM"
;
if
(
$ISCLOUD
)
{
$profile_default
=
"OpenStack"
;
$profile_default_pid
=
"tbres"
;
}
else
{
$profile_default
=
"OneVM"
;
$profile_default_pid
=
$TBOPSPID
;
}
$profile_array
=
array
();
#
...
...
@@ -158,7 +164,8 @@ else {
"where locked is null and (
$whereclause
)"
);
while
(
$row
=
mysql_fetch_array
(
$query_result
))
{
$profile_array
[
$row
[
"uuid"
]]
=
$row
[
"name"
];
if
(
$row
[
"pid"
]
==
$TBOPSPID
&&
$row
[
"name"
]
==
$profile_default
)
{
if
(
$row
[
"pid"
]
==
$profile_default_pid
&&
$row
[
"name"
]
==
$profile_default
)
{
$profile_default
=
$row
[
"uuid"
];
}
}
...
...
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