summaryrefslogtreecommitdiff
path: root/ironic/common/states.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-02-20 00:37:08 +0000
committerGerrit Code Review <review@openstack.org>2015-02-20 00:37:08 +0000
commit20c79de1757329c0868968442b5e5e5dc2bedd55 (patch)
tree1f479f0ef77bc95d2d88b3bb47758be441ca7b3c /ironic/common/states.py
parent078bf8c04a35d2accfe9dfb080acd91a6363eac0 (diff)
parentba36550e64416abd161d7c8c022f0097220f90d8 (diff)
downloadironic-20c79de1757329c0868968442b5e5e5dc2bedd55.tar.gz
Merge "Add concept of stable states to the state machine"
Diffstat (limited to 'ironic/common/states.py')
-rw-r--r--ironic/common/states.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/common/states.py b/ironic/common/states.py
index 042502b55..97581f3c7 100644
--- a/ironic/common/states.py
+++ b/ironic/common/states.py
@@ -180,10 +180,10 @@ watchers['on_enter'] = on_enter
machine = fsm.FSM()
# Add stable states
-machine.add_state(MANAGEABLE, **watchers)
-machine.add_state(AVAILABLE, **watchers)
-machine.add_state(ACTIVE, **watchers)
-machine.add_state(ERROR, **watchers)
+machine.add_state(MANAGEABLE, stable=True, **watchers)
+machine.add_state(AVAILABLE, stable=True, **watchers)
+machine.add_state(ACTIVE, stable=True, **watchers)
+machine.add_state(ERROR, stable=True, **watchers)
# From MANAGEABLE, a node may be made available
# TODO(deva): add CLEAN* states to this path