summaryrefslogtreecommitdiff
path: root/ironic/common/states.py
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@redhat.com>2015-07-24 17:51:33 +0200
committerRamakrishnan G <rameshg87@gmail.com>2015-07-27 01:43:31 +0000
commit5d9da5ec67885bbdd49d37c749c3c01e9d2eeeca (patch)
tree20f3fe36f3489fb4f30f8b7bdb693e057ff2f9c9 /ironic/common/states.py
parent01d2f0ba96b7ccfe952b5b33c8393cbda853e6f7 (diff)
downloadironic-5d9da5ec67885bbdd49d37c749c3c01e9d2eeeca.tar.gz
Allow deleting nodes in ENROLL state
Change-Id: I51f4f5d2b60ac0753bc5cfaa8f2ec3f8a401b7e1 Implements: blueprint enroll-node-state
Diffstat (limited to 'ironic/common/states.py')
-rw-r--r--ironic/common/states.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic/common/states.py b/ironic/common/states.py
index a0e1a09fa..7fef39cf8 100644
--- a/ironic/common/states.py
+++ b/ironic/common/states.py
@@ -163,6 +163,9 @@ INSPECTFAIL = 'inspect failed'
UPDATE_ALLOWED_STATES = (DEPLOYFAIL, INSPECTING, INSPECTFAIL, CLEANFAIL, ERROR)
"""Transitional states in which we allow updating a node."""
+DELETE_ALLOWED_STATES = (AVAILABLE, NOSTATE, MANAGEABLE, ENROLL)
+"""States in which node deletion is allowed."""
+
##############
# Power states