Commit 70895d58 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix.

parent 7385c334
......@@ -754,6 +754,13 @@ if (!$isdataset) {
$newimageid_args{"path"} = $ipath;
$osid = $new_osinfo->osid();
#
# Insert a submap entry.
#
if (defined($parentos)) {
$new_osinfo->SetRunsOnParent($parentos);
}
#
# Special option. Whole disk image, but only one partition that actually
# matters. None of this matters for datasets.
......@@ -782,11 +789,7 @@ fatal("Could not create new Image!")
my $imageid = $new_image->imageid();
my $imagepid = $new_image->pid();
#
# Insert a submap entry.
#
if (defined($parentos)) {
$new_osinfo->SetRunsOnParent($parentos);
#
# Temp hack until we put all mappings into XML file.
#
......
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