Commit 1e22579a authored by Leigh B Stoller's avatar Leigh B Stoller

Fix to typelist handling; use the new function not the DB.

parent be32d92a
......@@ -265,15 +265,7 @@ sub PostImageInfo($)
if (!defined($perms_result)) {
return -1;
}
#
# Grab the current type list.
#
my $types_result =
emdb::DBQueryWarn("select distinct type from osidtoimageid ".
"where imageid='$imageid'");
if (!defined($types_result)) {
return -1;
}
# Does not return if error.
my $credential = GetServerCredential();
......@@ -284,7 +276,8 @@ sub PostImageInfo($)
if (!$image->isdataset()) {
$arch = "x86_64";
$virtualization = "raw-pc";
while (my ($type) = $types_result->fetchrow_array()) {
foreach my $nodetype ($image->TypeList()) {
my $type = $nodetype->type();
push(@types, $type);
if ($type eq "m400") {
$arch = "aarch64";
......
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