Fix wrong init of ThreadGrop
ThreadGroup is an object, and should be initialized. Closes-bug: 1493543 Change-Id: If4b074efd87c226ee219aa2e3cfe458cadbbfb81
This commit is contained in:
parent
fc4af3b20a
commit
51397f3992
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue