From 1b83b2f11054ddd3f72fe75c5cef496060afcb3a Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Sat, 21 Jun 2014 13:56:42 +0300 Subject: Move to oslo.db Replace common oslo code nova.openstack.common.db by usage of oslo.db library and remove common code. Replaced catching of raw sqlalchemy exceptions by catches of oslo.db exceptions(such as DBError, DBDuplicateEntry, etc). Co-Authored-By: Eugeniya Kudryashova Closes-Bug: #1364986 Closes-Bug: #1353131 Closes-Bug: #1283987 Closes-Bug: #1274523 Change-Id: I0649539e071b2318ec85ed5d70259c949408e64b --- HACKING.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'HACKING.rst') diff --git a/HACKING.rst b/HACKING.rst index 3995a9ba08..91b915965a 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -10,7 +10,7 @@ Nova Specific Commandments - ``nova.db`` imports are not allowed in ``nova/virt/*`` - [N309] no db session in public API methods (disabled) - This enforces a guideline defined in ``nova.openstack.common.db.sqlalchemy.session`` + This enforces a guideline defined in ``oslo.db.sqlalchemy.session`` - [N310] timeutils.utcnow() wrapper must be used instead of direct calls to datetime.datetime.utcnow() to make it easy to override its return value in tests - [N311] importing code from other virt drivers forbidden -- cgit v1.2.1