diff --git a/tripleo_common/actions/__init__.py b/tripleo_common/actions/__init__.py index e69de29bb..f9bbbe07a 100644 --- a/tripleo_common/actions/__init__.py +++ b/tripleo_common/actions/__init__.py @@ -0,0 +1,4 @@ +from heatclient import exc as heat_exc + +# Setup Heat to give us tracebacks on errors. +heat_exc.verbose = 1 diff --git a/tripleo_common/tests/actions/test_deployment.py b/tripleo_common/tests/actions/test_deployment.py index 62c1c6af6..14efa862d 100644 --- a/tripleo_common/tests/actions/test_deployment.py +++ b/tripleo_common/tests/actions/test_deployment.py @@ -402,7 +402,7 @@ class DeployStackActionTest(base.TestCase): action = deployment.DeployStackAction(1, 'overcloud') expected = actions.Result( - error="Error during stack creation: ERROR: Oops") + error="Error during stack creation: ERROR: Oops\n") self.assertEqual(expected, action.run(mock_ctx)) @mock.patch('tripleo_common.actions.deployment.time') @@ -449,7 +449,7 @@ class DeployStackActionTest(base.TestCase): action = deployment.DeployStackAction(1, 'overcloud') expected = actions.Result( - error="Error during stack update: ERROR: Oops") + error="Error during stack update: ERROR: Oops\n") self.assertEqual(expected, action.run(mock_ctx))