Commit 0e096853 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Add support for protogeni-default-os sitevar.

parent f5054b4f
......@@ -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));
......
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