Skip to content

Commit

Permalink
fix SQL query (#5928)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan authored Nov 20, 2024
1 parent df2d7f9 commit fb78c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function automation_get_matching_device_sql(&$rule, $rule_type) {
$sdisabled = "'' AS site_disabled,";
}

$sql_query = "SELECT h.id AS host_id, h.hostname, h.description,
$sql_query = "SELECT DISTINCT h.id AS host_id, h.hostname, h.description,
h.disabled AS disabled, $sdisabled
h.status, ht.name AS host_template_name
FROM host AS h
Expand Down

0 comments on commit fb78c34

Please sign in to comment.