Commit 7eeaa0fc authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to IsMultiPCArchitecture() to avoid null rows.

parent 849432e1
#!/usr/bin/perl -w
#
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
# Copyright (c) 2000-2016, 2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -360,7 +360,8 @@ sub IsMultiPCArchitecture()
DBQueryWarn("select distinct architecture from node_types as nt ".
"left join nodes as n on n.type=nt.type ".
"where architecture is not null and class='pc' and ".
" n.node_id is not null and n.role='testnode'");
" n.node_id is not null and n.role='testnode' and ".
" architecture!=''");
return $query_result->numrows > 1 ? 1 : 0;
}
sub PCArchitectures()
......
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