Fix wrong init of ThreadGrop

ThreadGroup is an object, and should be initialized.
Closes-bug: 1493543

Change-Id: If4b074efd87c226ee219aa2e3cfe458cadbbfb81
This commit is contained in:
Vitaly Gridnev 2015-09-21 15:41:40 +03:00
parent fc4af3b20a
commit 51397f3992
1 changed files with 2 additions and 2 deletions

View File

@ -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)