backenddb: Fix error in Entity.__getitem__
authorEd Bartosh <eduard.bartosh@intel.com>
Sun, 10 Aug 2014 21:08:01 +0000 (00:08 +0300)
committerLin A Yang <lin.a.yang@intel.com>
Wed, 13 Aug 2014 04:38:12 +0000 (07:38 +0300)
commitc3e28aa5c7a9e74c1e089a8f04c71cb1e34a9d5e
treeb035fff51c179ffbd2c0f59c364adf12ed804f47
parent9ce030ecd7b6479e0ee9f6e7461cee8d628707d8
backenddb: Fix error in Entity.__getitem__

Used deepcopy to avoid modifications of the same dictionary.
This error broke tests in a very strange way: second call
of Entity.__getitem__ raised json exception.

Change-Id: I2ef33d67c4e046d24133d9f60ac5f92d9c5dd4fe
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
common/backenddb.py