[PATCH] Fix software update action into Host resource

Previous change on how to handle the update packages action forgot to add some necessary parameters to work in UI. Whitout this patch no action will be exectued when clicking on "Update All" buttons from Hongliang Wang's patch: "UI: Software Update Support". Signed-off-by: Paulo Vital <pvital@linux.vnet.ibm.com> --- src/kimchi/model/host.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kimchi/model/host.py b/src/kimchi/model/host.py index d0d2190..a7db7c9 100644 --- a/src/kimchi/model/host.py +++ b/src/kimchi/model/host.py @@ -44,6 +44,8 @@ HOST_STATS_INTERVAL = 1 class HostModel(object): def __init__(self, **kargs): self.conn = kargs['conn'] + self.objstore = kargs['objstore'] + self.task = TaskModel(**kargs) self.host_info = self._get_host_info() def _get_host_info(self): -- 1.8.3.1

Am 28-02-2014 15:43, schrieb Paulo Vital:
Previous change on how to handle the update packages action forgot to add some necessary parameters to work in UI.
Whitout this patch no action will be exectued when clicking on Apart from the typos above ("without", "executed"), the patch itself looks nice.
Reviewed-by: Crístian Viana <vianac@linux.vnet.ibm.com>

Applied. Thanks. Regards, Aline Manera
participants (3)
-
Aline Manera
-
Crístian Viana
-
Paulo Vital