Fix: ip_type='primary' au lieu de 'ipv4' dans server_ips
This commit is contained in:
parent
b190c04147
commit
4801d805b1
@ -292,7 +292,7 @@ def save_audit_to_db(db, results):
|
|||||||
), {"sid": server_id, "ip": ip_addr}).fetchone()
|
), {"sid": server_id, "ip": ip_addr}).fetchone()
|
||||||
if not existing_ip:
|
if not existing_ip:
|
||||||
db.execute(text(
|
db.execute(text(
|
||||||
"INSERT INTO server_ips (server_id, ip_address, ip_type, is_ssh, description) VALUES (:sid, :ip, 'ipv4', true, 'audit')"
|
"INSERT INTO server_ips (server_id, ip_address, ip_type, is_ssh, description) VALUES (:sid, :ip, 'primary', true, 'audit')"
|
||||||
), {"sid": server_id, "ip": ip_addr})
|
), {"sid": server_id, "ip": ip_addr})
|
||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user