Commit 3bd39dbf authored by Ryan Jackson's avatar Ryan Jackson
Browse files

Fix server info query for firewalls

Fixed the query for server name, ip, and mac so that it works with
multiple subbosses.  Previously the query would fail due to the
subquery returning multiple rows.
parent 24f185f7
......@@ -7972,8 +7972,8 @@ COMMAND_PROTOTYPE(dofwinfo)
*/
if (vers > 33) {
res = mydb_query("select node_id,IP,mac from interfaces "
"where role='ctrl' and node_id in "
"('boss','ops','fs',"
"where role='ctrl' and (node_id in "
"('boss','ops','fs') or node_id in "
"(select distinct subboss_id from subbosses))",
3);
if (!res) {
......
Supports Markdown
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