Commit e2c09d94 authored by Leigh Stoller's avatar Leigh Stoller

Minor tweak to previous revision.

parent cfbdbd86
......@@ -145,9 +145,12 @@ if ($clear) {
#
# Find the "default" parent image and the list of others parents.
#
my $parent_image = Image->LookupByName($parent);
my $parent_image = Image->Lookup($parent);
if (!defined($parent_image)) {
fatal("No such parent $parent");
$parent_image = Image->LookupByName($parent);
if (!defined($parent_image)) {
fatal("No such parent $parent");
}
}
my $parent_osinfo = OSinfo->Lookup($parent_image->imageid());
if (!defined($parent_osinfo)) {
......
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