Commit b82774eb authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

noexport changes; inherit from parent image.

parent 4dbb49a2
...@@ -935,6 +935,7 @@ if (!isset($submit)) { ...@@ -935,6 +935,7 @@ if (!isset($submit)) {
$defaults["wholedisk"] = "No"; $defaults["wholedisk"] = "No";
$defaults["reboot_waittime"] = ""; $defaults["reboot_waittime"] = "";
$defaults["mbr_version"] = ""; $defaults["mbr_version"] = "";
$defaults["noexport"] = "No";
# #
# Use the base image to seed the form. # Use the base image to seed the form.
...@@ -951,6 +952,7 @@ if (!isset($submit)) { ...@@ -951,6 +952,7 @@ if (!isset($submit)) {
$defaults["wholedisk"] = "Yep"; $defaults["wholedisk"] = "Yep";
} }
$defaults["mbr_version"] = $baseimage->mbr_version(); $defaults["mbr_version"] = $baseimage->mbr_version();
$defaults["noexport"] = ($baseimage->noexport() ? "Yes" : "No");
# #
# Same types as the parent. # Same types as the parent.
# #
...@@ -1251,6 +1253,9 @@ if (isset($formfields["shared"])) { ...@@ -1251,6 +1253,9 @@ if (isset($formfields["shared"])) {
if (isset($formfields["global"])) { if (isset($formfields["global"])) {
$args["global"] = strcmp($formfields["global"], "Yep") ? 0 : 1; $args["global"] = strcmp($formfields["global"], "Yep") ? 0 : 1;
} }
if (isset($formfields["noexport"]) && $formfields["noexport"] == "Yep") {
$args["noexport"] = 1;
}
if (isset($formfields["max_concurrent"]) && if (isset($formfields["max_concurrent"]) &&
$formfields["max_concurrent"] != "") { $formfields["max_concurrent"] != "") {
......
Supports Markdown
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