]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat engine : fix hardcoded DisableRollback value
authorSteven Hardy <shardy@redhat.com>
Thu, 28 Feb 2013 16:14:35 +0000 (16:14 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 28 Feb 2013 16:14:35 +0000 (16:14 +0000)
Engine API should return the real state of rollback now we
implement it, not hard-code to True

fixes bug 1135963

Change-Id: I6b9e6ea9587fe0c84b57f34bf69c2dcec5d5c09f

heat/engine/api.py

index 5a3a3d6382127bb332a3bbf11238e9a69c95006b..6a8e28eac1e5b0eaa2479d475c6c87196c24256b 100644 (file)
@@ -79,7 +79,7 @@ def format_stack(stack):
         STACK_STATUS: stack.state,
         STACK_STATUS_DATA: stack.state_description,
         STACK_CAPABILITIES: [],   # TODO Not implemented yet
-        STACK_DISABLE_ROLLBACK: True,   # TODO Not implemented yet
+        STACK_DISABLE_ROLLBACK: stack.disable_rollback,
         STACK_TIMEOUT: stack.timeout_mins,
     }