diff --git a/scripts/lua/modules/asset_management_utils.lua b/scripts/lua/modules/asset_management_utils.lua index 318a6a1fd269..903333004acf 100644 --- a/scripts/lua/modules/asset_management_utils.lua +++ b/scripts/lua/modules/asset_management_utils.lua @@ -25,7 +25,7 @@ function asset_management_utils.insert_host(entry) insert_host = string.format( "INSERT INTO %s " .. "(type, key, ip, mac, vlan, network, name, device_type, manufacturer, first_seen, last_seen) " .. - "SELECT '%s','%s','%s','%s', %u, %u, %s, %u, %s, %u ".. + "SELECT '%s','%s','%s','%s', %u, %u, %s, %u, %s, %u, %u ".. "WHERE NOT EXISTS ( SELECT 1 FROM %s WHERE key = '%s' )", table_name, entry["type"],