Merge "Improve error message for deleting node from error state"

This commit is contained in:
Jenkins 2017-04-13 18:24:20 +00:00 committed by Gerrit Code Review
commit c91897d9a6
1 changed files with 2 additions and 1 deletions

View File

@ -1613,7 +1613,8 @@ class ConductorManager(base_manager.BaseConductorManager):
node.provision_state not in states.DELETE_ALLOWED_STATES):
msg = (_('Can not delete node "%(node)s" while it is in '
'provision state "%(state)s". Valid provision states '
'to perform deletion are: "%(valid_states)s"') %
'to perform deletion are: "%(valid_states)s", '
'or set the node into maintenance mode') %
{'node': node.uuid, 'state': node.provision_state,
'valid_states': states.DELETE_ALLOWED_STATES})
raise exception.InvalidState(msg)