Skip to content

Commit

Permalink
Added missing %u in format
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Nov 5, 2024
1 parent 9da77c7 commit 4357f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lua/modules/asset_management_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 4357f7a

Please sign in to comment.