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

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

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