heat/heat
Zane Bitter 28a0e8c900 scheduler: Fix an issue with wrappertasks and exceptions
Using a 'for' loop on a generator is incompatible with calling throw() on
it, because the latter causes the generator to advance to the next yield.
Consequently, ignoring an exception from a subtask in the parent task would
cause the next subtask to be skipped.

This issue does not affect any existing code to date.

The inner and outer loops should each be equivalent to the definition of
"yield from" (http://www.python.org/dev/peps/pep-0380/#formal-semantics) in
PEP 380, with the following simplifications:
 - Assume that the throw() and close() methods exist
 - Don't support send()
 - Don't support return values (these are Python 3-only feature)

Change-Id: Ie29e68d4505f667f408b67b365c37511f73372fe
2013-06-12 12:48:25 +02:00
..
api Fix H702 errors and enable them 2013-06-12 12:50:09 +10:00
cfn_client Fix PEP H101 (Use TODO(NAME)) 2013-05-21 21:15:33 +10:00
cloudinit Use Python 3.x compatible octal literals 2013-06-10 09:46:34 +02:00
cmd Use heat-engine.conf for heat-manage config 2013-05-28 10:57:54 +01:00
common Merge "Fix H702 errors and enable them" 2013-06-12 08:37:25 +00:00
db Enable H403 2013-06-07 15:44:23 +02:00
engine scheduler: Fix an issue with wrappertasks and exceptions 2013-06-12 12:48:25 +02:00
locale Initial support for Transifex translations 2013-01-29 12:27:17 -08:00
openstack Add a basic heat-manage 2013-05-27 21:06:31 +10:00
rpc Update the oslo code before importing a new module 2013-05-27 16:05:13 +10:00
tests scheduler: Fix an issue with wrappertasks and exceptions 2013-06-12 12:48:25 +02:00
__init__.py Sync cfg from openstack-common 2012-03-16 11:49:46 -04:00
version.py Migrate to pbr. 2013-05-25 08:35:00 +02:00