[Kimchi-devel] [PATCH V3] Issue #737: Wok base framework calls resource model's lookup twice
archus at linux.vnet.ibm.com
archus at linux.vnet.ibm.com
Mon Nov 23 10:05:02 UTC 2015
From: Archana Singh <archus at linux.vnet.ibm.com>
In case of GET lookup was called twice.
Once before is_authorized() and then in self.get().
This added overhead to system when lookup() is called
for each value in list from get_list() of Collection.
So to avoid this, removed lookup() call from get().
Also updated code to call self.lookup() before self.get()
in resource's update() and collection's create().
Archana Singh (1):
Issue #737: Wok base framework calls resource model's lookup twice
src/wok/control/base.py | 5 ++---
src/wok/plugins/kimchi/control/storagepools.py | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
--
2.1.4
More information about the Kimchi-devel
mailing list