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
b82774eb
Commit
b82774eb
authored
Jul 01, 2013
by
Leigh B Stoller
Browse files
noexport changes; inherit from parent image.
parent
4dbb49a2
Changes
1
Show whitespace changes
Inline
Side-by-side
www/newimageid_ez.php3
View file @
b82774eb
...
...
@@ -935,6 +935,7 @@ if (!isset($submit)) {
$defaults
[
"wholedisk"
]
=
"No"
;
$defaults
[
"reboot_waittime"
]
=
""
;
$defaults
[
"mbr_version"
]
=
""
;
$defaults
[
"noexport"
]
=
"No"
;
#
# Use the base image to seed the form.
...
...
@@ -951,6 +952,7 @@ if (!isset($submit)) {
$defaults
[
"wholedisk"
]
=
"Yep"
;
}
$defaults
[
"mbr_version"
]
=
$baseimage
->
mbr_version
();
$defaults
[
"noexport"
]
=
(
$baseimage
->
noexport
()
?
"Yes"
:
"No"
);
#
# Same types as the parent.
#
...
...
@@ -1251,6 +1253,9 @@ if (isset($formfields["shared"])) {
if
(
isset
(
$formfields
[
"global"
]))
{
$args
[
"global"
]
=
strcmp
(
$formfields
[
"global"
],
"Yep"
)
?
0
:
1
;
}
if
(
isset
(
$formfields
[
"noexport"
])
&&
$formfields
[
"noexport"
]
==
"Yep"
)
{
$args
[
"noexport"
]
=
1
;
}
if
(
isset
(
$formfields
[
"max_concurrent"
])
&&
$formfields
[
"max_concurrent"
]
!=
""
)
{
...
...
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