Commit 8ed4c532 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix previous revision. Translation: give it more then 5 seconds thought.

parent 746da3ac
......@@ -39,6 +39,7 @@ use emutil;
use libdb qw(TBGetSiteVar EXPTSTATE_SWAPPED EXPTSTATE_ACTIVE);
use User;
use Node;
use OSinfo;
use Interface;
use English;
use Data::Dumper;
......@@ -709,8 +710,11 @@ sub GetTicket($;$)
"Bad resource $resource_uuid");
goto bad;
}
$osname = $node->default_osid()
if (defined($node->default_osid()));
if (defined($node->default_osid())) {
my $osinfo = OSinfo->Lookup($node->default_osid());
$osname = $osinfo->osname()
if (defined($osinfo));
}
}
my $virtnode =
$virtexperiment->NewTableRow("virt_nodes",
......
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