Commit 3a64e4d0 authored by Kevin Atkinson's avatar Kevin Atkinson

parent 2056d9cd
......@@ -485,13 +485,19 @@ if (!$isadmin && defined($node_id)) {
while (my ($ntype) = $query_result->fetchrow_array()) {
$otypes{$ntype} = 1;
}
my @invalid_node_types;
foreach my $ntype (@mtype_keys) {
$ntype =~ s/^mtype_//;
if (!exists($otypes{$ntype})) {
UserError("Node Types: Current image on $node_id".
" cannot run on node type $ntype");
push @invalid_node_types, $ntype;
}
}
if (@invalid_node_types) {
UserError("Node Types: Current image on $node_id".
" cannot run on the following node types: ".
join(' ', @invalid_node_types));
}
}
# XXX Allowable OS types, OS features, and OpModes need to be
......
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