From 51397f3992313587846603cd33229abe20687342 Mon Sep 17 00:00:00 2001 From: Vitaly Gridnev Date: Mon, 21 Sep 2015 15:41:40 +0300 Subject: [PATCH] Fix wrong init of ThreadGrop ThreadGroup is an object, and should be initialized. Closes-bug: 1493543 Change-Id: If4b074efd87c226ee219aa2e3cfe458cadbbfb81 --- sahara/plugins/cdh/cloudera_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sahara/plugins/cdh/cloudera_utils.py b/sahara/plugins/cdh/cloudera_utils.py index 3fde8819fd..e5a612b97b 100644 --- a/sahara/plugins/cdh/cloudera_utils.py +++ b/sahara/plugins/cdh/cloudera_utils.py @@ -140,9 +140,9 @@ class ClouderaUtils(object): # instances non-empty cpo.add_provisioning_step( instances[0].cluster_id, _("Update configs"), len(instances)) - with context.ThreadGroup as tg: + with context.ThreadGroup() as tg: for instance in instances: - tg.spawn("update-configs-%s" % instances.instance_name, + tg.spawn("update-configs-%s" % instance.instance_name, self._update_configs, instance) @cpo.event_wrapper(True)