Heat stack will rollback on error (MRN-728)

Change-Id: I2755a557a4a5d810afc8b3e34aa5b318358baae2
This commit is contained in:
Alexander Tivelkov 2013-08-06 21:53:31 +04:00
parent 98feefec21
commit f5607d8da7
2 changed files with 4 additions and 2 deletions

View File

@ -132,7 +132,8 @@ class HeatExecutor(CommandBase):
self._heat_client.stacks.create(
stack_name=self._stack,
parameters=arguments,
template=template)
template=template,
disable_rollback=False)
log.debug('Waiting for the stack {0} to be create'.format(
self._stack))

View File

@ -84,7 +84,8 @@ class TestHeatExecutor(unittest.TestCase):
"testName": {
"testKey": "testValue"
}
})
},
disable_rollback=False)
callback.assert_called_with({})
@mock.patch('heatclient.v1.client.Client')