From 2f037360d6d2d4eaf803f8d8f9374da2d980d68f Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 4 Dec 2014 17:40:13 -0800 Subject: [PATCH] Ensure frozen attribute is set in fsm clones/copies Change-Id: Ic267eaeeda70046e37e6edeb296a956f32c82edf --- taskflow/types/fsm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/taskflow/types/fsm.py b/taskflow/types/fsm.py index edc9a57a..9cf94d7b 100644 --- a/taskflow/types/fsm.py +++ b/taskflow/types/fsm.py @@ -209,6 +209,7 @@ class FSM(object): NOTE(harlowja): the copy will be left in an *uninitialized* state. """ c = FSM(self.start_state) + c.frozen = self.frozen for state, data in six.iteritems(self._states): copied_data = data.copy() copied_data['reactions'] = copied_data['reactions'].copy()