Skip to content
GitLab
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
0e096853
Commit
0e096853
authored
Feb 09, 2012
by
Jonathon Duerig
Browse files
Add support for protogeni-default-os sitevar.
parent
f5054b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCM.pm.in
View file @
0e096853
...
...
@@ -1104,7 +1104,10 @@ sub GetTicketAuxAux($$$$$$$$$)
# If no osname by this point, try for the default.
#
if (defined($node) && !defined($osname)) {
if (defined($node->default_osid())) {
my $protogeni_os = undef;
if (GetSiteVar('
protogeni
/
default_osname
', \$protogeni_os)) {
$osname = $protogeni_os;
} elsif (defined($node->default_osid())) {
my $osinfo = OSinfo->Lookup($node->default_osid());
$osname = $osinfo->osname()
if (defined($osinfo));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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