]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Get rid of create state in Instance
authorZane Bitter <zbitter@redhat.com>
Tue, 23 Apr 2013 11:21:28 +0000 (13:21 +0200)
committerZane Bitter <zbitter@redhat.com>
Tue, 23 Apr 2013 11:21:33 +0000 (13:21 +0200)
commitf3454692fbd6808a8bd82844a1b191bc8d912a16
tree5a6a4961bb1853514c0acbd7709a11d997a07009
parent9bd13ec4d596c41d35f84e5880419808b6a021ff
Get rid of create state in Instance

We don't want to store any state in the Instance object, instead take
advantage of the new mechanism whereby the result of handle_create() is
passed to check_active().

This makes the autoscaling code uglier for now (since it must still store
the instance state in the instance), but this will go away when we move to
using co-routines to create resources in parallel.

Change-Id: Ib11c8da22900453eb9713eba5106859c8a09dbe2
heat/engine/resources/autoscaling.py
heat/engine/resources/instance.py
heat/tests/test_autoscaling.py
heat/tests/test_instance_group.py
heat/tests/test_metadata_refresh.py