diff --git a/heat/engine/stack.py b/heat/engine/stack.py index 18422a1825..e0c7cee5ce 100644 --- a/heat/engine/stack.py +++ b/heat/engine/stack.py @@ -528,7 +528,8 @@ class Stack(collections.Mapping): username=stack.username, convergence=stack.convergence, current_traversal=stack.current_traversal, prev_raw_template_id=stack.prev_raw_template_id, - current_deps=stack.current_deps, cache_data=cache_data) + current_deps=stack.current_deps, cache_data=cache_data, + nested_depth=stack.nested_depth) def get_kwargs_for_cloning(self, keep_status=False, only_db=False): """Get common kwargs for calling Stack() for cloning. diff --git a/heat/tests/test_stack.py b/heat/tests/test_stack.py index 415a8483d7..66201fb213 100644 --- a/heat/tests/test_stack.py +++ b/heat/tests/test_stack.py @@ -386,7 +386,8 @@ class StackTest(common.HeatTestCase): convergence=False, current_traversal=self.stack.current_traversal, prev_raw_template_id=None, - current_deps=None, cache_data=None) + current_deps=None, cache_data=None, + nested_depth=0) self.m.ReplayAll() stack.Stack.load(self.ctx, stack_id=self.stack.id)