Commit dc205eb5 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix when mapping from version specific image to its osinfo.

parent 4a915099
......@@ -1311,7 +1311,10 @@ sub LoadVirtNodes($)
if (!defined($image)) {
tberror("Invalid os url $osname!\n");
}
$osinfo = OSinfo->Lookup($image->imageid());
# Have to make sure we get the corresponding osinfo version.
$osinfo = OSinfo->Lookup($image->pid(),
$image->imagename(),
$image->version());
}
elsif ($osname =~ /^(.*)\/(.*)$/) {
$osinfo = OSinfo->Lookup($osname);
......
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