]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use a task subclass instead of a functor + task wrapper
authorJoshua Harlow <harlowja@yahoo-inc.com>
Wed, 25 Jun 2014 18:24:02 +0000 (11:24 -0700)
committerJoshua Harlow <harlowja@yahoo-inc.com>
Wed, 25 Jun 2014 18:41:14 +0000 (11:41 -0700)
commit0144e71b5cd1bb7c7e4ab82652e94dfe0dbfad40
tree881a3f4ef7b3c7864c87608451ff2ce579f48b10
parente20ef8a8bb56297892b05d2a5bd728f503dd637e
Use a task subclass instead of a functor + task wrapper

Instead of using a functor that activates the scheduler driver
instead incorporate and use a task subclass, this avoids the less
meaningful information that is presented when a functor is used
as well as allows for a more straightforward path for future
subclassing and derivations of work.

Change-Id: Ice66e109968c28f36156edf3dd47a89f94494bb8
cinder/scheduler/flows/create_volume.py