diff options
author | Dmitry Tantsur <dtantsur@redhat.com> | 2015-07-24 17:51:33 +0200 |
---|---|---|
committer | Ramakrishnan G <rameshg87@gmail.com> | 2015-07-27 01:43:31 +0000 |
commit | 5d9da5ec67885bbdd49d37c749c3c01e9d2eeeca (patch) | |
tree | 20f3fe36f3489fb4f30f8b7bdb693e057ff2f9c9 /ironic/common/states.py | |
parent | 01d2f0ba96b7ccfe952b5b33c8393cbda853e6f7 (diff) | |
download | ironic-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.py | 3 |
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 |