diff options
author | Rick Harris <rconradharris@gmail.com> | 2012-02-29 23:38:56 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2012-03-01 22:13:03 -0600 |
commit | c9aa0f57b6200313ea1f6c3839d65828024e2d37 (patch) | |
tree | 279ca8081e6fa7dbb0cf9603b565e7bcdf611a77 /nova/context.py | |
parent | d65a4e4023e9994c8a14a1da4aa4eeb4f6452640 (diff) | |
download | nova-c9aa0f57b6200313ea1f6c3839d65828024e2d37.tar.gz nova-c9aa0f57b6200313ea1f6c3839d65828024e2d37.tar.xz nova-c9aa0f57b6200313ea1f6c3839d65828024e2d37.zip |
Refactor spawn to use UndoManager.
UndoManager provides a mechanism for automatically rolling back on
exceptions. An additional benefit of this approach is that undo code is
spatially close to the roll-forward code.
This patch should be considered an intermediate step towards a more
complete Command pattern based approach down the road.
Change-Id: Ib429420d67324422a5d13cdea6872fd9c57c857e
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions