Commit 083db958 authored by Leigh Stoller's avatar Leigh Stoller

Do not rely on nextosid when what we really need to use is

def_parentosid, since that is how ptopgen operates.
parent 53cfe6f1
......@@ -1285,6 +1285,15 @@ sub LoadVirtNodes($)
}
$vnode->_parent_osinfo($osinfo);
}
elsif ($isvirt && defined($vnode->_osinfo()->def_parentosid())) {
my $osinfo = OSinfo->Lookup($vnode->_osinfo()->def_parentosid());
if (!defined($osinfo)) {
tberror("Invalid def_parentosid in " .
$vnode->_osinfo() . "\n");
return -1;
}
$vnode->_parent_osinfo($osinfo);
}
#
# Add in desires.
......
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