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

Make OpenStack default profile in CloudLab UI.

parent 7170f989
...@@ -53,8 +53,14 @@ $optargs = OptionalPageArguments("create", PAGEARG_STRING, ...@@ -53,8 +53,14 @@ $optargs = OptionalPageArguments("create", PAGEARG_STRING,
"verify", PAGEARG_STRING, "verify", PAGEARG_STRING,
"project", PAGEARG_PROJECT, "project", PAGEARG_PROJECT,
"formfields", PAGEARG_ARRAY); "formfields", PAGEARG_ARRAY);
if ($ISCLOUD) {
$profile_default = "OneVM"; $profile_default = "OpenStack";
$profile_default_pid = "tbres";
}
else {
$profile_default = "OneVM";
$profile_default_pid = $TBOPSPID;
}
$profile_array = array(); $profile_array = array();
# #
...@@ -158,7 +164,8 @@ else { ...@@ -158,7 +164,8 @@ else {
"where locked is null and ($whereclause)"); "where locked is null and ($whereclause)");
while ($row = mysql_fetch_array($query_result)) { while ($row = mysql_fetch_array($query_result)) {
$profile_array[$row["uuid"]] = $row["name"]; $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"]; $profile_default = $row["uuid"];
} }
} }
......
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