[Kimchi-devel] [PATCH 1/2] Delete useless variables assignment

Aline Manera alinefm at linux.vnet.ibm.com
Thu Sep 18 14:55:22 UTC 2014


Task resource is not used on PackagesUpdate so there is no need to
assign it.

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 src/kimchi/model/host.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/kimchi/model/host.py b/src/kimchi/model/host.py
index 8153164..3975a10 100644
--- a/src/kimchi/model/host.py
+++ b/src/kimchi/model/host.py
@@ -363,8 +363,6 @@ class PackagesUpdateModel(object):
             self.host_swupdate = SoftwareUpdate()
         except:
             self.host_swupdate = None
-        self.objstore = kargs['objstore']
-        self.task = TaskModel(**kargs)
 
     def get_list(self):
         if self.host_swupdate is None:
-- 
1.9.3




More information about the Kimchi-devel mailing list