From 727319971e075987845643cf4fda8fe48450f1f5 Mon Sep 17 00:00:00 2001
From: joe <joe@autistici.org>
Date: Sun, 26 May 2013 12:29:16 +0200
Subject: [PATCH] Audit now correctly converts data with the entity.to_net
 filter (resolves issue #16)

---
 configdb/db/interface/sa_interface.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configdb/db/interface/sa_interface.py b/configdb/db/interface/sa_interface.py
index 00600fa..dddb772 100644
--- a/configdb/db/interface/sa_interface.py
+++ b/configdb/db/interface/sa_interface.py
@@ -73,6 +73,7 @@ class SqlAlchemyDbInterface(base.DbInterface):
     def add_audit(self, entity_name, object_name, operation,
                   data, auth_ctx, session):
         ins = self._objs['audit_table'].insert()
+        data = self._schema.get_entity(entity_name).to_net(data)
         session.execute(ins, {'entity': entity_name,
                               'object': object_name,
                               'op': operation,
-- 
GitLab